mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-09 05:11:59 +00:00
Dump the labels, if no label given
Printing out the labels in the case statement if no label is given. (And a few extra lines from case-statements further down the script).
This commit is contained in:
@@ -168,7 +168,9 @@ printlog "################## Start Installomator"
|
||||
|
||||
# get the label
|
||||
if [[ $# -eq 0 ]]; then
|
||||
printlog "no label provided"
|
||||
printlog "no label provided. Printing labels:"
|
||||
printlog "$(grep -E '^ *[a-z]*\*?\)$' "$0" | sed -E 's/^ *([a-z]+)[)]$/\1/g' )"
|
||||
printlog "Omit the last lines from “*)”."
|
||||
exit 1
|
||||
elif [[ $# -gt 3 ]]; then
|
||||
# jamf uses $4 for the first custom parameter
|
||||
|
||||
Reference in New Issue
Block a user