mirror of
https://github.com/mtan93/Installomator.git
synced 2026-05-11 14:26:06 +01:00
updated regex, changed whitespaceing of label case statement to simplify filtering
This commit is contained in:
+2
-3
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user