From 654046272330b9e829b5a92ca8a1117335e86efe Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Sun, 2 Aug 2020 18:49:55 +0200 Subject: [PATCH] yet another try to make it work --- salt/states/files/install_firefox_addon | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"