From dd8b0f42715db67b691e1736fc468ce6c9513375 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 14 Sep 2023 15:00:23 -0300 Subject: Updates tor-browser-dl (8) --- tor-browser-dl | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'tor-browser-dl') 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" -- cgit v1.2.3