mirror of
https://github.com/mtan93/dialog-scripts.git
synced 2026-03-07 21:22:00 +00:00
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:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user