diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2024-09-13 15:40:20 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2024-09-13 15:40:20 +0900 |
| commit | f5b0159281881ddfda239a9ff8580314cacea05d (patch) | |
| tree | cd9e88f30a03ab5a1757589eeb2489e8f9215f4a | |
| parent | 8aa64c1a791cb13c785a2c8b1d483d6480ef9b25 (diff) | |
Init
| -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" |
