diff options
-rwxr-xr-x | tor-browser-dl | 13 |
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" |