From 5d66b843b8c816acf7835ccbfcc13c635ce6d22a Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 14 Sep 2023 14:55:48 -0300 Subject: Updates tor-browser-dl (4) --- tor-browser-dl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tor-browser-dl') diff --git a/tor-browser-dl b/tor-browser-dl index e84b461..3376036 100755 --- a/tor-browser-dl +++ b/tor-browser-dl @@ -13,7 +13,7 @@ DL="$HOME/data/distros/tor/" VERSION="$1" ARCH="$2" #LANG="$3" -LANG="ALL" +#LANG="ALL" #BASE_URL="https://dist.torproject.org/torbrowser/$VERSION" BASE_URL="https://archive.torproject.org/tor-package-archive/torbrowser/" @@ -41,13 +41,19 @@ elif [ -z "$ARCH" ]; then ARCH="linux64" fi +# Determine the application name +if echo $VERSION | ! grep -q 'a' then + FILE_SUFFIX="_ALL" +fi + # Set lang #if [ -z "$LANG" ]; then # LANG="en-US" #fi # Set file names -FILE="tor-browser-$ARCH-$VERSION"_"$LANG.tar.xz" +#FILE="tor-browser-$ARCH-$VERSION"_"$LANG.tar.xz" +FILE="tor-browser-$ARCH-$VERSION"_"$FILE_SUFFIX.tar.xz" SIGN="$FILE.asc" # Check existing installation -- cgit v1.2.3