diff --git a/.config/update_theme.sh b/.config/update_theme.sh index 95472b5..1c5c15e 100755 --- a/.config/update_theme.sh +++ b/.config/update_theme.sh @@ -15,8 +15,8 @@ main() { if [ $# -eq 0 ]; then echo "No arguments supplied" else - local profiles profile - profiles=("$(gsettings get org.gnome.Terminal.ProfilesList list | tr -d \'[],)") + local profiles + IFS=" " read -r -a profiles <<< "$(gsettings get org.gnome.Terminal.ProfilesList list | tr -d "\'[],")" case $1 in "sunset" ) # Go to dark mode # Set the Dracula theme