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.
This commit is contained in:
Adam Codega
2022-02-22 23:28:48 -05:00
parent 9bd9aae6e3
commit 7dfe7135f2

View File

@@ -48,13 +48,13 @@ function finalise(){
} }
function appCheck(){ function appCheck(){
dialog_command "listitem: $app: wait" dialog_command "listitem: "$(echo "$app" | cut -d ',' -f1)": wait"
while [ ! -e "/Applications/$app.app" ] while [ ! -e "$(echo "$app" | cut -d ',' -f2)" ]
do do
sleep 2 sleep 2
done done
dialog_command "progresstext: Install of \"$app\" complete" dialog_command "progresstext: Install of \"$(echo "$app" | cut -d ',' -f1)\" complete"
dialog_command "listitem: $app: ✅" dialog_command "listitem: $(echo "$app" | cut -d ',' -f1): ✅"
progress_index=$(( $progress_index + 1 )) progress_index=$(( $progress_index + 1 ))
echo "at item number $progress_index" echo "at item number $progress_index"
} }