Skip to content

Commit

Permalink
Fixed bug with downloading waterfox via GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
Darius Musiolik authored and Darius Musiolik committed Nov 6, 2018
1 parent 9c2e0a4 commit 05a7d01
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions get-waterfox
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ if [ "$EUID" != "0" ]; then
fi
echo "[INIT] Creating folder /usr/share/waterfox"
mkdir /usr/share/waterfox
chmod 777 /usr/share/waterfox --recursive
echo "[INIT] Alter rights in /usr/share/waterfox to 776"
chmod 776 /usr/share/waterfox --recursive
exit
fi

Expand All @@ -47,7 +48,8 @@ if [ "$1" = "download" ]; then
fi
echo "[INFO] Downloading current Waterfox from waterfoxproject.org to /usr/share/waterfox"
echo "[INFO] Please stand by ..."
wget https://storage-waterfox.netdna-ssl.com/releases/linux64/installer/waterfox-$(curl -s https://api.github.com/repos/MrAlex94/Waterfox/releases/latest | grep tag_name | cut -d '"' -f 4).en-US.linux-x86_64.tar.bz2 -O /usr/share/waterfox/waterfox.tar.bz2
#wget https://storage-waterfox.netdna-ssl.com/releases/linux64/installer/waterfox-$(curl -s https://api.github.com/repos/MrAlex94/Waterfox/releases/latest | grep tag_name | cut -d '"' -f 4).en-US.linux-x86_64.tar.bz2 -O /usr/share/waterfox/waterfox.tar.bz2
wget $(curl https://waterfoxproject.org/en-US/ |grep -Eo "(https)://[a-zA-Z0-9./?=_-]*" |sort |grep linux64 |uniq) -O /usr/share/waterfox/waterfox.tar.bz2
echo "[ OK ] Now execute: sudo get-waterfox install"
exit
fi
Expand Down Expand Up @@ -123,7 +125,7 @@ if [ "$EUID" != "0" ]; then
rm -rf /usr/share/waterfox/*
echo "[INFO] Downloading current Waterfox from waterfoxproject.org to /usr/share/waterfox"
echo "[INFO] Please stand by ..."
wget https://storage-waterfox.netdna-ssl.com/releases/linux64/installer/waterfox-$(curl -s https://api.github.com/repos/MrAlex94/Waterfox/releases/latest | grep tag_name | cut -d '"' -f 4).en-US.linux-x86_64.tar.bz2 -O /usr/share/waterfox/waterfox.tar.bz2
wget $(curl https://waterfoxproject.org/en-US/ |grep -Eo "(https)://[a-zA-Z0-9./?=_-]*" |sort |grep linux64 |uniq) -O /usr/share/waterfox/waterfox.tar.bz2
echo "[ OK ] Download ready!"
echo "[EXTRACTING] Please wait ..."
tar -xf /usr/share/waterfox/waterfox.tar.bz2 -C /usr/share/waterfox/
Expand Down

0 comments on commit 05a7d01

Please sign in to comment.