aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2023-08-26 11:17:22 -0300
committerSilvio Rhatto <rhatto@riseup.net>2023-08-26 11:17:22 -0300
commit84d6b2122dd65aa8549dfa52065c61856abb7163 (patch)
tree092fd3283167d3dfeb92283da742cbdc587b6294
parent4665b8fc8d55d1972338fc2fcc5d614b3602c173 (diff)
downloaddownloaders-84d6b2122dd65aa8549dfa52065c61856abb7163.tar.gz
downloaders-84d6b2122dd65aa8549dfa52065c61856abb7163.tar.bz2
Updates tor-browser-dl
-rwxr-xr-xtor-browser-dl48
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"