aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2023-09-14 14:55:48 -0300
committerSilvio Rhatto <rhatto@riseup.net>2023-09-14 14:55:48 -0300
commit5d66b843b8c816acf7835ccbfcc13c635ce6d22a (patch)
treebcb68ec074cb6f64589c4413526a4dd9ddeb2055
parentb870f3ecfe1265b7fafc93ff270409348a705b75 (diff)
downloaddownloaders-5d66b843b8c816acf7835ccbfcc13c635ce6d22a.tar.gz
downloaders-5d66b843b8c816acf7835ccbfcc13c635ce6d22a.tar.bz2
Updates tor-browser-dl (4)
-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