diff options
-rwxr-xr-x | tor-browser-dl | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/tor-browser-dl b/tor-browser-dl index 2a17813..5f25c18 100755 --- a/tor-browser-dl +++ b/tor-browser-dl @@ -6,18 +6,22 @@ # Parameters BASENAME="`basename $0`" APPS="$HOME/apps" -APP_BASE="$APPS/tor-browser" +#APP_BASE="$APPS/tor-browser" +APP_BASE="$HOME/.local/share/tor-browser" TEMP="$TMP/tor-browser" DL="$HOME/data/distros/tor/" VERSION="$1" ARCH="$2" -LANG="$3" -BASE_URL="https://www.torproject.org/dist/torbrowser/$VERSION" +#LANG="$3" +LANG="ALL" +BASE_URL="https://dist.torproject.org/torbrowser/$VERSION" # Syntax check if [ -z "$VERSION" ]; then - echo "usage: $BASENAME <version> [arch] [lang]" - echo "example: $BASENAME 2.3.25-14-dev linux64 en-US" + #echo "usage: $BASENAME <version> [arch] [lang]" + #echo "example: $BASENAME 12.5.2 linux64 en-US" + echo "usage: $BASENAME <version> [arch]" + echo "example: $BASENAME 12.5.2 linux64" exit 1 fi @@ -27,9 +31,9 @@ if [ -z "$ARCH" ]; then fi # Set lang -if [ -z "$LANG" ]; then - LANG="en-US" -fi +#if [ -z "$LANG" ]; then +# LANG="en-US" +#fi # Set file names FILE="tor-browser-$ARCH-$VERSION"_"$LANG.tar.xz" @@ -67,22 +71,22 @@ rm -rf $APP_BASE/$ARCH && \ ( cd "$APP_BASE" && ln -sf "$ARCH-$VERSION" "$ARCH" ) # Set pentadactyl if available -if [ -e "$HOME/.pentadactyl" ]; then - ( - cd "$APP_BASE/$ARCH-$VERSION/Browser" - ln -s "$HOME/.pentadactyl" - ln -s "$HOME/.pentadactylrc" - ) -fi +#if [ -e "$HOME/.pentadactyl" ]; then +# ( +# cd "$APP_BASE/$ARCH-$VERSION/Browser" +# ln -s "$HOME/.pentadactyl" +# ln -s "$HOME/.pentadactylrc" +# ) +#fi # Set vimperator if available -if [ -e "$HOME/.vimperator" ]; then - ( - cd "$APP_BASE/$ARCH-$VERSION/Browser" - ln -s "$HOME/.vimperator" - ln -s "$HOME/.vimperatorrc" - ) -fi +#if [ -e "$HOME/.vimperator" ]; then +# ( +# cd "$APP_BASE/$ARCH-$VERSION/Browser" +# ln -s "$HOME/.vimperator" +# ln -s "$HOME/.vimperatorrc" +# ) +#fi # Cleanup rm -rf "$TEMP" |