clean up path

This commit is contained in:
Jonas Forsberg 2020-08-02 18:18:40 +02:00
parent 357d3401f8
commit 8382e25c7b
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9

View File

@ -8,6 +8,7 @@ tmpfile=$(mktemp /tmp/install_firefox_addon.XXXXXX)
curl -sLo "$tmpfile" "$url" curl -sLo "$tmpfile" "$url"
for p in "$(sed -n 's/^Path=\(.*\)$/\1/p' $HOME/.mozilla/firefox/profiles.ini)";do 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" cp "$tmpfile" "$HOME/.mozilla/firefox/$p/$filename"
done done
rm "$tmpfile" rm "$tmpfile"