Update functions.sh

Now return one `#` when unknown label is given, not a whole bunch of them.

```
Installomator/utils/assemble.sh strangelabel RETURN_LABEL_NAME=1 DEBUG=0 | tail -1
#
```
This commit is contained in:
Søren Theilgaard
2022-01-08 15:37:08 +01:00
parent 3b6e27f1fa
commit a1afc4727e

View File

@@ -20,7 +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
echo "##################"
echo "#"
fi
exit "$1"
}