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