aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2023-11-27 15:52:20 -0300
committerSilvio Rhatto <rhatto@riseup.net>2023-11-27 15:52:20 -0300
commitf32f5d5a4d28dfaeeb5c109cd5a3caac54e74c46 (patch)
tree6910dad479c8a7696e54d6d34df17ebf615d5a82 /share
parent96addcc3682c06438a7812d7d537240b6028dccf (diff)
downloadtrashman-f32f5d5a4d28dfaeeb5c109cd5a3caac54e74c46.tar.gz
trashman-f32f5d5a4d28dfaeeb5c109cd5a3caac54e74c46.tar.bz2
Fix: hoarder: tor-browser: update folder scheme
Diffstat (limited to 'share')
-rwxr-xr-xshare/hoarder/tor-browser/unix/linux/install21
1 files changed, 12 insertions, 9 deletions
diff --git a/share/hoarder/tor-browser/unix/linux/install b/share/hoarder/tor-browser/unix/linux/install
index 7075604..393af13 100755
--- a/share/hoarder/tor-browser/unix/linux/install
+++ b/share/hoarder/tor-browser/unix/linux/install
@@ -58,17 +58,20 @@ 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/latest || exit 1
-mkdir -p $APP/$ARCH || exit 1
-mv $WORK/tor-browser $APP/$ARCH/latest || exit 1
-rm -rf $WORK || exit 1
+mkdir -p $HOME/.local/share || exit 1
+cd $HOME/.local/share || exit 1
+rm -rf $APP/$ARCH/$VERSION || exit 1
+mkdir -p $APP/$ARCH || exit 1
+mv $WORK/tor-browser $APP/$ARCH/$VERSION || exit 1
+rm -rf $WORK || exit 1
+rm -rf $APP/$ARCH/latest || exit 1
+cd $APP/$ARCH && ln -s $VERSION latest || 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/latest/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
+ln -sf $HOME/.local/share/$APP/$ARCH/$VERSION/Browser/start-tor-browser $APP-${ARCH}-${VERSION} || exit 1
# Remove old symlink to the Tor Browser script
rm -f $HOME/.local/bin/$APP