Skip to content

Commit

Permalink
Update Tor Browser
Browse files Browse the repository at this point in the history
  • Loading branch information
Fullaxx committed Jun 14, 2024
1 parent b250b4a commit 3b90828
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions scripts/install_torbrowser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,18 @@ export DEBIAN_FRONTEND="noninteractive"
apt-get update
apt-get install -y file gnupg2 libasound2 libgtk-3-0 libdbus-glib-1-2 wget xz-utils

TORPKG=`curl -s https://www.torproject.org/download/ 2>/dev/null | grep 'Download for Linux' | tr '"' '\n' | grep linux-x86_64`
TORSIG=`curl -s https://www.torproject.org/download/ 2>/dev/null | grep Signature | tr '"' '\n' | grep tar.xz.asc`
TORPKG=`curl -s https://www.torproject.org/download/ 2>/dev/null | grep 'Download for Linux' | tr '"' '\n' | grep linux-x86_64 || true`
TORSIG=`curl -s https://www.torproject.org/download/ 2>/dev/null | grep Signature | tr '"' '\n' | grep tar.xz.asc || true`

if [ -z "${TORPKG}" ]; then
echo "Hyperlinks have changed! TORPKG is not valid!"
exit 1
fi

if [ -z "${TORSIG}" ]; then
echo "Hyperlinks have changed! TORSIG is not valid!"
exit 2
fi

# Download package
wget https://www.torproject.org/${TORPKG} -O /tmp/tor.tar.xz
Expand All @@ -23,7 +33,7 @@ gpg --verify /tmp/tor.tar.xz.asc /tmp/tor.tar.xz
tar xf /tmp/tor.tar.xz -C /opt
if [ ! -d /opt/tor-browser ]; then
echo "tor-browser not found under /tmp/tor.tar.xz!"
exit 1
exit 3
fi

# Tweak package
Expand Down

0 comments on commit 3b90828

Please sign in to comment.