mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-12-26 08:11:33 +00:00
fix broken EXIT_CODE var handling
This commit is contained in:
@@ -352,6 +352,7 @@ elif [ "$NEW_BRANCH" == "legacy" ] && [ "$CURRENT_BRANCH" != "legacy" ]; then
|
||||
fi
|
||||
|
||||
if [ ! "$DEV" ]; then
|
||||
EXIT_COUNT=0
|
||||
echo -e "\e[32mChecking for newer update script...\e[0m"
|
||||
SHA1_1="$(sha1sum update.sh)"
|
||||
git fetch origin
|
||||
@@ -378,11 +379,11 @@ if [ ! "$DEV" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "${EXIT_COUNT}" -ge 1 ]; then
|
||||
if [ ${EXIT_COUNT} -ge 1 ]; then
|
||||
echo "Changes for the update Script, please run this script again, exiting!"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
|
||||
fi
|
||||
|
||||
if [ ! "$FORCE" ]; then
|
||||
|
||||
Reference in New Issue
Block a user