Update file run_onchange_after_25-gnome-extension-settings.tmpl

This commit is contained in:
Brian Zalewski 2023-01-10 05:02:31 +00:00
parent fed748ea90
commit 9d6474cf3a

View file

@ -50,11 +50,13 @@ if [ -f "$HOME/.config/desktop/gnome.yml" ]; then
if [ "$EXT_SETTINGS" != 'null' ]; then
logg info 'Evaluating extension settings'
if [ "$EXT_SETTINGS_TYPE" == 'array' ]; then
echo "$EXT_SETTINGS" | jq -cr '.' | while read EXT_SETTING; do
echo "$EXT_SETTINGS" | jq -cr '.[]' | while read EXT_SETTING; do
logg info 'Applying following extension setting:'
echo "$EXT_SETTING"
eval "$EXT_SETTING"
done
else
logg info 'Applying following extension setting:'
echo "$EXT_SETTINGS"
eval "$EXT_SETTINGS"
fi