From bc4ffee937f01bf1960b237d14657518452b79cc Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 27 Nov 2023 16:00:53 -0300 Subject: Feat: tor-browser: support for arbitrary browser versions --- tor-browser | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3