updated regex, changed whitespaceing of label case statement to simplify filtering

This commit is contained in:
Armin Briegel
2020-07-22 11:39:02 +02:00
parent 9e2221f943
commit decc5274f0

View File

@@ -169,9 +169,8 @@ printlog "################## Start Installomator"
# get the label
if [[ $# -eq 0 ]]; then
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
grep -E '^[a-z0-9]*\)$' "$0" | tr -d ')' | grep -v -E '^broken' | sort
exit 0
elif [[ $# -gt 3 ]]; then
# jamf uses $4 for the first custom parameter
printlog "shifting arguments for Jamf"