mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-28 16:58:03 +01:00
fail on wrong branch
This commit is contained in:
parent
69a18c7375
commit
35b5e8e670
1 changed files with 7 additions and 0 deletions
|
@ -98,6 +98,13 @@ cd raspiblitz
|
|||
|
||||
# checkout the desired branch
|
||||
git checkout $BRANCH
|
||||
if [ $? -gt 0 ]; then
|
||||
cd ..
|
||||
rm -rf raspiblitz 2>/dev/null
|
||||
echo "# BRANCH: ${BRANCH}"
|
||||
echo "error='git checkout BRANCH failed'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# check commit hash if set
|
||||
if [ ${#COMMITHASH} -gt 0 ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue