diff --git a/salt/states/files/install_firefox_addon b/salt/states/files/install_firefox_addon index 9fbf372..a4082c0 100755 --- a/salt/states/files/install_firefox_addon +++ b/salt/states/files/install_firefox_addon @@ -8,6 +8,7 @@ tmpfile=$(mktemp /tmp/install_firefox_addon.XXXXXX) curl -sLo "$tmpfile" "$url" for p in "$(sed -n 's/^Path=\(.*\)$/\1/p' $HOME/.mozilla/firefox/profiles.ini)";do + p=${p//[$'\t\r\n']} cp "$tmpfile" "$HOME/.mozilla/firefox/$p/$filename" done rm "$tmpfile"