diff --git a/salt/states/files/install_firefox_addon b/salt/states/files/install_firefox_addon index f7179a4..84e157b 100755 --- a/salt/states/files/install_firefox_addon +++ b/salt/states/files/install_firefox_addon @@ -9,7 +9,8 @@ readarray -t profiles <<<"$(sed -n 's/^Path=\(.*\)$/\1/p' $HOME/.mozilla/firefox curl -sLo "$tmpfile" "$url" -for p in "$profiles";do - cp "$tmpfile" "$HOME/.mozilla/firefox/$p/$filename" +for p in $(sed -n 's/^Path=\(.*\)$/\1/p' $HOME/.mozilla/firefox/profiles.ini);do + echo "Installing in profile $p" + cp "$tmpfile" "$HOME/.mozilla/firefox/$p/extensions/$filename" done rm "$tmpfile"