aboutsummaryrefslogtreecommitdiff
path: root/tor-browser-dl
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2023-11-27 15:00:29 -0300
committerSilvio Rhatto <rhatto@riseup.net>2023-11-27 15:00:29 -0300
commit26b9983f62a021ae862a7edb861b981af2a2a73d (patch)
treeed5e25fd65f3f0f58398e53c9cf587d0d07ac1bf /tor-browser-dl
parente74f5cbc8b967d19810a3bba525e9e0a314ad488 (diff)
downloaddownloaders-26b9983f62a021ae862a7edb861b981af2a2a73d.tar.gz
downloaders-26b9983f62a021ae862a7edb861b981af2a2a73d.tar.bz2
Fix: tor-browser-dl: update file name scheme
Diffstat (limited to 'tor-browser-dl')
-rwxr-xr-xtor-browser-dl18
1 files changed, 2 insertions, 16 deletions
diff --git a/tor-browser-dl b/tor-browser-dl
index ee70585..7aaaa60 100755
--- a/tor-browser-dl
+++ b/tor-browser-dl
@@ -28,25 +28,11 @@ if [ -z "$VERSION" ]; then
exit 1
fi
-# Determine architecture and file suffix
+# Determine the application name
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"
-elif [ "$ARCH" = "i686" ]; then
- ARCH="linux32"
-elif [ -z "$ARCH" ] || [ "$ARCH" = "x86_64" ]; then
- if [ "$APP" = "tor-browser" ]; then
- ARCH="linux64"
- else
- ARCH="linux-x86_64"
- fi
fi
# Set lang
@@ -56,7 +42,7 @@ fi
# Set file names
#FILE="tor-browser-$ARCH-$VERSION"_"$LANG.tar.xz"
-FILE="tor-browser-${ARCH}-${VERSION}${FILE_SUFFIX}.tar.xz"
+FILE="tor-browser-linux-${ARCH}-${VERSION}.tar.xz"
SIGN="$FILE.asc"
# Check existing installation