Update file run_onchange_after_40-firefox.tmpl

This commit is contained in:
Brian Zalewski 2023-01-14 10:59:04 +00:00
parent d2c2cfd52b
commit 908b8f3db6

View file

@ -35,7 +35,7 @@ fi
### Install Firefox addons (using list declared in .chezmoidata.yaml) ### Install Firefox addons (using list declared in .chezmoidata.yaml)
if command -v org.mozilla.firefox > /dev/null; then if command -v org.mozilla.firefox > /dev/null; then
for FIREFOX_PLUGIN in {{ list .firefoxAddOns | join " " }}; do for FIREFOX_PLUGIN in {{ list .firefoxAddOns | replace "[" "" | replace "]" "" | join " " }}; do
logg info 'Ensuring `'"$FIREFOX_PLUGIN"'` is installed' logg info 'Ensuring `'"$FIREFOX_PLUGIN"'` is installed'
PLUGIN_HTML="$(mktemp)" PLUGIN_HTML="$(mktemp)"
curl --silent "https://addons.mozilla.org/en-US/firefox/addon/$FIREFOX_PLUGIN/" > "$PLUGIN_HTML" curl --silent "https://addons.mozilla.org/en-US/firefox/addon/$FIREFOX_PLUGIN/" > "$PLUGIN_HTML"