From a47666e96d77d09d883767ca88cf6142ef615de8 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Tue, 10 Jan 2023 04:04:45 +0000 Subject: [PATCH] Update file run_onchange_after_25-gnome-extension-settings.tmpl --- .../run_onchange_after_25-gnome-extension-settings.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/.chezmoiscripts/universal/run_onchange_after_25-gnome-extension-settings.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_25-gnome-extension-settings.tmpl index bad58e53..4c9db446 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_25-gnome-extension-settings.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_25-gnome-extension-settings.tmpl @@ -13,7 +13,7 @@ fi ### Populate /tmp/install-gnome-extensions.txt with GNOME extensions that need to be installed if [ -f "$HOME/.config/desktop/gnome.yml" ]; then - yq e -o=j "$HOME/.config/desktop/gnome.yml" | jq -cr '.default_gnome_extensions[]' | while read EXT; do + cat "$HOME/.config/desktop/gnome.yml" | yq e -o=j '.' | jq -cr '.default_gnome_extensions[]' | while read EXT; do EXT_URL="$(echo "$EXT" | jq -r '.url')" EXT_ID="$(echo "$EXT" | jq -r '.regex')" echo "$EXT_URL" >> /tmp/install-gnome-extensions.txt @@ -45,7 +45,7 @@ fi ### Apply plugin gsettings if [ -f "$HOME/.config/desktop/gnome.yml" ]; then - yq e -o=j "$HOME/.config/desktop/gnome.yml" | jq -cr '.default_gnome_extensions[]' | while read EXT; do + cat "$HOME/.config/desktop/gnome.yml" | yq e -o=j '.' | jq -cr '.default_gnome_extensions[]' | while read EXT; do EXT_ID="$(echo "$EXT" | jq -r '.regex')" EXT_SETTINGS="$(echo "$EXT" | jq -r '.settings')" if [ "$EXT_SETTINGS" != 'null' ]; then