From f53e20e31321e559cde775cb5835a0273bf944e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Theilgaard?= Date: Wed, 2 Feb 2022 13:49:00 +0100 Subject: [PATCH] Update functions.sh If only returning label name, then we exit with 0. --- fragments/functions.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/fragments/functions.sh b/fragments/functions.sh index 0908662..490ee8c 100644 --- a/fragments/functions.sh +++ b/fragments/functions.sh @@ -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"