mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-01 08:28:20 +02:00
#1116 fix branch check
This commit is contained in:
parent
2202ff08eb
commit
b3fb105012
@ -60,7 +60,7 @@ if [ ${#wantedBranch} -gt 0 ]; then
|
||||
|
||||
echo "# checking branch exists .."
|
||||
branchExists=$(curl -s https://api.github.com/repos/${activeGitHubUser}/raspiblitz/branches/${wantedBranch} | jq -r '.name' | grep -c '${wantedBranch}')
|
||||
if [ ${repoExists} -eq 0 ]; then
|
||||
if [ ${branchExists} -eq 0 ]; then
|
||||
echo "error='branch not found'"
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user