mirror of
https://github.com/mtan93/dialog-scripts.git
synced 2026-03-08 05:31:54 +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(){
|
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"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user