aboutsummaryrefslogtreecommitdiff
path: root/tor-browser
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2023-11-27 16:00:53 -0300
committerSilvio Rhatto <rhatto@riseup.net>2023-11-27 16:00:53 -0300
commitbc4ffee937f01bf1960b237d14657518452b79cc (patch)
treeaee560e0aa46e18f97e4d1e0b990765bee66ac37 /tor-browser
parentdf9a7df3e0d3c4c089015b8ede4bbf1a1da258d1 (diff)
downloadutils-tor-bc4ffee937f01bf1960b237d14657518452b79cc.tar.gz
utils-tor-bc4ffee937f01bf1960b237d14657518452b79cc.tar.bz2
Feat: tor-browser: support for arbitrary browser versionsHEADmaster
Diffstat (limited to 'tor-browser')
-rwxr-xr-xtor-browser3
1 files changed, 2 insertions, 1 deletions
diff --git a/tor-browser b/tor-browser
index b0e54cb..216d7eb 100755
--- a/tor-browser
+++ b/tor-browser
@@ -5,6 +5,7 @@
# Parameters
BASENAME="`basename $0`"
+VERSION="${1:-latest}"
# Prefer torbrowser-launcher
#if which torbrowser-launcher &> /dev/null; then
@@ -28,7 +29,7 @@ BASENAME="`basename $0`"
ARCH="`uname -m`"
#FOLDER="$HOME/apps/tor-browser/$ARCH"
- FOLDER="$HOME/.local/share/tor-browser/$ARCH/latest"
+ FOLDER="$HOME/.local/share/tor-browser/$ARCH/$VERSION"
#if [ -d "$FOLDER" ]; then
if [ -x "$FOLDER/start-tor-browser.desktop" ]; then