summaryrefslogtreecommitdiff
path: root/static/thesiah.sh
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-09-13 15:40:20 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-09-13 15:40:20 +0900
commitf5b0159281881ddfda239a9ff8580314cacea05d (patch)
treecd9e88f30a03ab5a1757589eeb2489e8f9215f4a /static/thesiah.sh
parent8aa64c1a791cb13c785a2c8b1d483d6480ef9b25 (diff)
Init
Diffstat (limited to 'static/thesiah.sh')
-rwxr-xr-xstatic/thesiah.sh4
1 files changed, 2 insertions, 2 deletions
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"