]> gitweb.fluxo.info Git - scripts.git/commitdiff
Updating tor-browser-dl naming conventions
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 20 Dec 2013 15:37:50 +0000 (13:37 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 20 Dec 2013 15:37:50 +0000 (13:37 -0200)
tor-browser-dl

index 5bdb17b7fe40101e2ad494be891c9d8d05375f8e..d73bf81ebd239f6056628d6e8f35b30cb2fcbf3a 100755 (executable)
@@ -12,18 +12,18 @@ DL="$HOME/data/apps/distros/tor/"
 VERSION="$1"
 ARCH="$2"
 LANG="$3"
-BASE_URL="https://www.torproject.org/dist/torbrowser/linux/"
+BASE_URL="https://www.torproject.org/dist/torbrowser/$VERSION"
 
 # Syntax check
 if [ -z "$VERSION" ]; then
   echo "usage: $BASENAME <version> [arch] [lang]"
-  echo "example: $BASENAME 2.3.25-14-dev x86_64 en-US"
+  echo "example: $BASENAME 2.3.25-14-dev linux64 en-US"
   exit 1
 fi
 
 # Set arch
 if [ -z "$ARCH" ]; then
-  ARCH="x86_64"
+  ARCH="linux64"
 fi
 
 # Set lang
@@ -32,7 +32,7 @@ if [ -z "$LANG" ]; then
 fi
 
 # Set file names
-FILE="tor-browser-gnu-linux-$ARCH-$VERSION-$LANG.tar.gz"
+FILE="tor-browser-$ARCH-$VERSION"_"$LANG.tar.xz"
 SIGN="$FILE.asc"
 
 # Check existing installation