mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 20:16:22 +02:00
fail on wrong branch
This commit is contained in:
@@ -98,6 +98,13 @@ cd raspiblitz
|
|||||||
|
|
||||||
# checkout the desired branch
|
# checkout the desired branch
|
||||||
git checkout $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
|
# check commit hash if set
|
||||||
if [ ${#COMMITHASH} -gt 0 ]; then
|
if [ ${#COMMITHASH} -gt 0 ]; then
|
||||||
|
Reference in New Issue
Block a user