mirror of
https://github.com/mtan93/dialog-scripts.git
synced 2026-03-07 21:22:00 +00:00
Swap tabs for spaces, fix listitems creation
listitems creation was not taking into account app names with spaces, ie Google Chrome would be cut off into Google.
This commit is contained in:
@@ -83,7 +83,7 @@ dialogCMD="$dialogApp -p --title \"$title\" \
|
||||
# create the list of apps
|
||||
listitems=""
|
||||
for app in "${apps[@]}"; do
|
||||
listitems="$listitems --listitem \"$(echo "$app" | cut -d ',' -f1)\""
|
||||
listitems="$listitems --listitem '$(echo "$app" | cut -d ',' -f1)'"
|
||||
done
|
||||
|
||||
# final command to execute
|
||||
|
||||
Reference in New Issue
Block a user