From 8382e25c7b1bea75992466f41ff16de768611ce2 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Sun, 2 Aug 2020 18:18:40 +0200 Subject: [PATCH] clean up path --- salt/states/files/install_firefox_addon | 1 + 1 file changed, 1 insertion(+) 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"