aboutsummaryrefslogtreecommitdiff
path: root/tor-browser-dl
diff options
context:
space:
mode:
Diffstat (limited to 'tor-browser-dl')
-rwxr-xr-xtor-browser-dl10
1 files changed, 8 insertions, 2 deletions
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