Update functions.sh

If only returning label name, then we exit with 0.
This commit is contained in:
Søren Theilgaard
2022-02-02 13:49:00 +01:00
parent 3bf9299218
commit f53e20e313

View File

@@ -20,6 +20,7 @@ cleanupAndExit() { # $1 = exit code, $2 message
printlog "################## End Installomator, exit code $1 \n\n"
# if label is wrong and we wanted name of the label, then return ##################
if [[ $RETURN_LABEL_NAME -eq 1 ]]; then
1=0
echo "#"
fi
exit "$1"