fix issues when retrieving profiles UUID

This commit is contained in:
Mylloon 2023-09-13 13:55:54 +02:00
parent 3c1ce4fccc
commit 2de7d6cff4
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

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