mirror of
https://github.com/mtan93/dialog-scripts.git
synced 2026-03-08 05:31:54 +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
|
# create the list of apps
|
||||||
listitems=""
|
listitems=""
|
||||||
for app in "${apps[@]}"; do
|
for app in "${apps[@]}"; do
|
||||||
listitems="$listitems --listitem \"$(echo "$app" | cut -d ',' -f1)\""
|
listitems="$listitems --listitem '$(echo "$app" | cut -d ',' -f1)'"
|
||||||
done
|
done
|
||||||
|
|
||||||
# final command to execute
|
# final command to execute
|
||||||
|
|||||||
Reference in New Issue
Block a user