summaryrefslogtreecommitdiff
path: root/public/thesiah.sh
diff options
context:
space:
mode:
Diffstat (limited to 'public/thesiah.sh')
-rwxr-xr-xpublic/thesiah.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/thesiah.sh b/public/thesiah.sh
index 283b847..c9275c8 100755
--- a/public/thesiah.sh
+++ b/public/thesiah.sh
@@ -305,9 +305,9 @@ installffaddons() {
sudo -u "$name" mkdir -p "$sipdir/extensions/"
for addon in $addonlist; do
if [ "$addon" = "ublock-origin" ]; then
- addonurl="$(curl -sL https://api.github.com/repos/gorhill/uBlock/releases/latest | grep -E 'browser_download_url.*\.firefox\.xpi' | cut -d '"' -f 4)"
+ addonurl="$(curl -sL https://api.github.com/repos/gorhill/uBlock/releases/latest | grep -E 'browser_download_url.*\.firefox\..*xpi' | cut -d '"' -f 4)"
else
- addonurl="$(curl --silent "https://addons.mozilla.org/en-US/firefox/addon/${addon}/" | grep -o 'https://addons.mozilla.org/firefox/downloads/file/[^"]*')"
+ addonurl="$(curl -s "https://addons.mozilla.org/en-US/firefox/addon/${addon}/" | grep -o 'https://addons.mozilla.org/firefox/downloads/file/[^"]*')"
fi
file="${addonurl##*/}"
sudo -u "$name" curl -LOs "$addonurl" >"$addontmp/$file"