mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-13 14:23:11 +01: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
|
# get the label
|
||||||
if [[ $# -eq 0 ]]; then
|
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
|
exit 1
|
||||||
elif [[ $# -gt 3 ]]; then
|
elif [[ $# -gt 3 ]]; then
|
||||||
# jamf uses $4 for the first custom parameter
|
# jamf uses $4 for the first custom parameter
|
||||||
|
|||||||
Reference in New Issue
Block a user