aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/hoarder/tor-browser/unix/linux/install20
1 files changed, 10 insertions, 10 deletions
diff --git a/share/hoarder/tor-browser/unix/linux/install b/share/hoarder/tor-browser/unix/linux/install
index a384f99..0ac55a5 100755
--- a/share/hoarder/tor-browser/unix/linux/install
+++ b/share/hoarder/tor-browser/unix/linux/install
@@ -1,6 +1,6 @@
#!/usr/bin/env sh
#
-# Install Tor Browser
+# Installs the latest Tor Browser stable or alpha
#
# Parameters
@@ -72,17 +72,17 @@ rm -rf $WORK/.gnupg || exi
tar xvf $WORK/$FILE -C $WORK || exit 1
# Install
-mkdir -p $HOME/.local/share || exit 1
-cd $HOME/.local/share || exit 1
-rm -rf $APP/$ARCH || exit 1
-mkdir -p $APP || exit 1
-mv $WORK/tor-browser $APP/$ARCH || exit 1
-rm -rf $WORK || exit 1
+mkdir -p $HOME/.local/share || exit 1
+cd $HOME/.local/share || exit 1
+rm -rf $APP/$ARCH/latest || exit 1
+mkdir -p $APP/$ARCH || exit 1
+mv $WORK/tor-browser $APP/$ARCH/latest || exit 1
+rm -rf $WORK || exit 1
# Create symlink to scripts
-mkdir -p $HOME/.local/bin || exit 1
-cd $HOME/.local/bin || exit 1
-ln -sf $HOME/.local/share/$APP/${ARCH}/Browser/start-tor-browser $APP-${ARCH} || exit 1
+mkdir -p $HOME/.local/bin || exit 1
+cd $HOME/.local/bin || exit 1
+ln -sf $HOME/.local/share/$APP/$ARCH/latest/Browser/start-tor-browser $APP-${ARCH} || exit 1
# Remove old symlink to the Tor Browser script
rm -f $HOME/.local/bin/$APP