aboutsummaryrefslogtreecommitdiff
path: root/share/hoarder/tor-browser/unix/linux/install
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2023-09-14 15:32:24 -0300
committerSilvio Rhatto <rhatto@riseup.net>2023-09-14 15:32:24 -0300
commit97214782d1ac3280edebc1045dcb658d734d59aa (patch)
tree50b7d6e4694e2593c4c922b18834108a0cc4ad98 /share/hoarder/tor-browser/unix/linux/install
parentcb0c3f6d8e34a40f2e9358ee54f1ea906ed5755c (diff)
downloadtrashman-97214782d1ac3280edebc1045dcb658d734d59aa.tar.gz
trashman-97214782d1ac3280edebc1045dcb658d734d59aa.tar.bz2
Fix: tor-browser, tor-browser-alpha: use $HOME/.local/share/tor-browser/$ARCH/latest
Diffstat (limited to 'share/hoarder/tor-browser/unix/linux/install')
-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