mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-12 21:59:19 +02:00
#1138 fix branch check
This commit is contained in:
parent
523216d289
commit
a756a1c390
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user