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
+2 -3
View File
@@ -169,9 +169,8 @@ printlog "################## Start Installomator"
# get the label # get the label
if [[ $# -eq 0 ]]; then if [[ $# -eq 0 ]]; then
printlog "no label provided. Printing labels:" printlog "no label provided. Printing labels:"
printlog "$(grep -E '^ *[a-z]*\*?\)$' "$0" | sed -E 's/^ *([a-z]+)[)]$/\1/g' )" grep -E '^[a-z0-9]*\)$' "$0" | tr -d ')' | grep -v -E '^broken' | sort
printlog "Omit the last lines from “*)”." exit 0
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
printlog "shifting arguments for Jamf" printlog "shifting arguments for Jamf"