From e5ff21e3ba1230af50c3c39392f3719dcb3c9543 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Sat, 14 Jan 2023 10:59:57 +0000 Subject: [PATCH] Update file run_onchange_after_40-firefox.tmpl --- .../universal/run_onchange_after_40-firefox.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.chezmoiscripts/universal/run_onchange_after_40-firefox.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_40-firefox.tmpl index 68707212..4fd7d4f3 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_40-firefox.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_40-firefox.tmpl @@ -35,7 +35,7 @@ fi ### Install Firefox addons (using list declared in .chezmoidata.yaml) 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' PLUGIN_HTML="$(mktemp)" curl --silent "https://addons.mozilla.org/en-US/firefox/addon/$FIREFOX_PLUGIN/" > "$PLUGIN_HTML"