Update file run_onchange_after_40-firefox.tmpl

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

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 | replace "[" "" | replace "]" "" | join " " }}; do for FIREFOX_PLUGIN in {{ list .firefoxAddOns | toString | replace "[" "" | replace "]" "") | uniq | 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"