From 7dfe7135f29288ab4994bbd50c5954716253f79f Mon Sep 17 00:00:00 2001 From: Adam Codega Date: Tue, 22 Feb 2022 23:28:48 -0500 Subject: [PATCH] Improved app array, new support for file paths New app array and list item/while logic allows for specifying any file path, like a pkg receipt or a receipt, rather than just an application name. --- MDMAppsDeploy.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MDMAppsDeploy.sh b/MDMAppsDeploy.sh index 388ddcd..7849673 100755 --- a/MDMAppsDeploy.sh +++ b/MDMAppsDeploy.sh @@ -48,13 +48,13 @@ function finalise(){ } function appCheck(){ -dialog_command "listitem: $app: wait" -while [ ! -e "/Applications/$app.app" ] +dialog_command "listitem: "$(echo "$app" | cut -d ',' -f1)": wait" +while [ ! -e "$(echo "$app" | cut -d ',' -f2)" ] do sleep 2 done -dialog_command "progresstext: Install of \"$app\" complete" -dialog_command "listitem: $app: ✅" +dialog_command "progresstext: Install of \"$(echo "$app" | cut -d ',' -f1)\" complete" +dialog_command "listitem: $(echo "$app" | cut -d ',' -f1): ✅" progress_index=$(( $progress_index + 1 )) echo "at item number $progress_index" }