aboutsummaryrefslogtreecommitdiff
path: root/tor-browser-dl
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2023-09-14 15:00:23 -0300
committerSilvio Rhatto <rhatto@riseup.net>2023-09-14 15:00:23 -0300
commitdd8b0f42715db67b691e1736fc468ce6c9513375 (patch)
tree0afe4a62a8572c215da095d5cec8c10315653eaa /tor-browser-dl
parent8807ff72519ac5854e98aa8fb1ee9933510ff38f (diff)
downloaddownloaders-dd8b0f42715db67b691e1736fc468ce6c9513375.tar.gz
downloaders-dd8b0f42715db67b691e1736fc468ce6c9513375.tar.bz2
Updates tor-browser-dl (8)
Diffstat (limited to 'tor-browser-dl')
-rwxr-xr-xtor-browser-dl13
1 files changed, 8 insertions, 5 deletions
diff --git a/tor-browser-dl b/tor-browser-dl
index e9d0a46..5914b19 100755
--- a/tor-browser-dl
+++ b/tor-browser-dl
@@ -26,6 +26,14 @@ if [ -z "$VERSION" ]; then
exit 1
fi
+# Determine architecture and file suffix
+if echo $VERSION | grep -q 'a'; then
+ APP="tor-browser-alpha"
+else
+ APP="tor-browser"
+ FILE_SUFFIX="_ALL"
+fi
+
# Determine architecture
if [ "$ARCH" = "i386" ]; then
ARCH="linux32"
@@ -41,11 +49,6 @@ elif [ -z "$ARCH" ]; then
ARCH="linux64"
fi
-# Determine the file suffix for stable or alpha
-if ! echo $VERSION | grep -q 'a'; then
- FILE_SUFFIX="_ALL"
-fi
-
# Set lang
#if [ -z "$LANG" ]; then
# LANG="en-US"