add start end log

add start end log
This commit is contained in:
Mischa van der Bent
2020-05-20 11:02:02 +02:00
parent ea9a97eb7a
commit b7ff0d296f

View File

@@ -145,6 +145,8 @@ downloadURLFromGit() { # $1 git user name, $2 git repo name
fi fi
} }
ScriptLogging "################## Start Installomator"
# get the label # get the label
if [[ $# -eq 0 ]]; then if [[ $# -eq 0 ]]; then
ScriptLogging "no label provided" ScriptLogging "no label provided"
@@ -157,6 +159,7 @@ fi
label=${1:?"no label provided"} label=${1:?"no label provided"}
ScriptLogging "################## $label"
# lowercase the label # lowercase the label
label=${label:l} label=${label:l}
@@ -691,6 +694,7 @@ cleanupAndExit() { # $1 = exit code, $2 message
ScriptLogging "Unmounting $dmgmount" ScriptLogging "Unmounting $dmgmount"
hdiutil detach "$dmgmount" hdiutil detach "$dmgmount"
fi fi
ScriptLogging "################## End Installomator \n\n"
exit "$1" exit "$1"
} }