diff options
| -rwxr-xr-x | public/thesiah.sh | 4 | ||||
| -rwxr-xr-x | static/thesiah.sh | 4 |
2 files changed, 4 insertions, 4 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" diff --git a/static/thesiah.sh b/static/thesiah.sh index 283b847..c9275c8 100755 --- a/static/thesiah.sh +++ b/static/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" |
