mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
add start end log
add start end log
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user