1
0
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:
DerLinkman
2025-05-27 15:31:52 +02:00
parent 17e38a05f0
commit a487fcd0bd

View File

@@ -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