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:
Adam Codega
2022-02-28 18:38:10 -05:00
parent 682f1334e6
commit ea27f9b609

View File

@@ -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