#1138 fix branch check

This commit is contained in:
rootzoll 2020-04-26 22:05:47 +02:00
parent 523216d289
commit a756a1c390

View File

@ -59,7 +59,7 @@ if [ ${#wantedBranch} -gt 0 ]; then
else
echo "# checking branch exists .."
branchExists=$(curl -s https://api.github.com/repos/${activeGitHubUser}/raspiblitz/branches/${wantedBranch} | jq -r '.name' | grep -c '${wantedBranch}')
branchExists=$(curl -s https://api.github.com/repos/${activeGitHubUser}/raspiblitz/branches/${wantedBranch} | jq -r '.name' | grep -c ${wantedBranch})
if [ ${branchExists} -eq 0 ]; then
echo "error='branch not found'"
exit 1