mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-09 20:32:52 +02:00
#1138 fix branch check
This commit is contained in:
@@ -59,7 +59,7 @@ if [ ${#wantedBranch} -gt 0 ]; then
|
|||||||
else
|
else
|
||||||
|
|
||||||
echo "# checking branch exists .."
|
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
|
if [ ${branchExists} -eq 0 ]; then
|
||||||
echo "error='branch not found'"
|
echo "error='branch not found'"
|
||||||
exit 1
|
exit 1
|
||||||
|
Reference in New Issue
Block a user