mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 14:51:03 +01:00
only use -run for patch
This commit is contained in:
parent
164ff4d9ac
commit
b8126501cf
2 changed files with 3 additions and 2 deletions
|
@ -178,7 +178,7 @@ patch()
|
|||
newGitHubBranch=$(echo "${newGitHubBranch}" | cut -d " " -f1)
|
||||
echo "--> " $newGitHubBranch
|
||||
error=""
|
||||
source <(sudo -u admin /home/admin/XXsyncScripts.sh -run ${newGitHubBranch})
|
||||
source <(sudo -u admin /home/admin/XXsyncScripts.sh ${newGitHubBranch})
|
||||
if [ ${#error} -gt 0 ]; then
|
||||
whiptail --title "ERROR" --msgbox "${error}" 8 30
|
||||
fi
|
||||
|
@ -197,7 +197,7 @@ patch()
|
|||
cd /home/admin/raspiblitz
|
||||
git fetch origin pull/${pullRequestID}/head:pr${pullRequestID}
|
||||
error=""
|
||||
source <(sudo -u admin /home/admin/XXsyncScripts.sh -run pr${pullRequestID})
|
||||
source <(sudo -u admin /home/admin/XXsyncScripts.sh pr${pullRequestID})
|
||||
if [ ${#error} -gt 0 ]; then
|
||||
whiptail --title "ERROR" --msgbox "${error}" 8 30
|
||||
fi
|
||||
|
|
|
@ -35,6 +35,7 @@ install=0
|
|||
wantedBranch="$1"
|
||||
wantedGitHubUser="$2"
|
||||
if [ "${wantedBranch}" = "-run" ]; then
|
||||
# "-run" ist just used by "patch" command and will ignore all further parameter
|
||||
wantedBranch="${activeBranch}"
|
||||
wantedGitHubUser="${activeGitHubUser}"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue