]> gitweb.fluxo.info Git - downloaders.git/commitdiff
Fix: tor-browser-dl: update file name scheme
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 27 Nov 2023 18:00:29 +0000 (15:00 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 27 Nov 2023 18:00:29 +0000 (15:00 -0300)
tor-browser-dl

index ee70585153b169a621500641aca617709b43be4e..7aaaa60a466e2e22dc988a161e783f197f809409 100755 (executable)
@@ -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