aboutsummaryrefslogtreecommitdiff
path: root/share/hoarder/tor-browser/unix/linux/install
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2023-11-27 18:34:46 -0300
committerSilvio Rhatto <rhatto@riseup.net>2023-11-27 18:34:46 -0300
commite2b29d19e1ab81654b17168ace45ea1db88e713e (patch)
treeefa414d985fba55140193f814a3a905bd3efeb5f /share/hoarder/tor-browser/unix/linux/install
parentf3e611896029c62baa9d374918c77fc61b2c922b (diff)
downloadtrashman-e2b29d19e1ab81654b17168ace45ea1db88e713e.tar.gz
trashman-e2b29d19e1ab81654b17168ace45ea1db88e713e.tar.bz2
Fix: hoarder: tor-browser: bashisms
Diffstat (limited to 'share/hoarder/tor-browser/unix/linux/install')
-rwxr-xr-xshare/hoarder/tor-browser/unix/linux/install6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/hoarder/tor-browser/unix/linux/install b/share/hoarder/tor-browser/unix/linux/install
index 2503eeb..a4bd7dc 100755
--- a/share/hoarder/tor-browser/unix/linux/install
+++ b/share/hoarder/tor-browser/unix/linux/install
@@ -61,7 +61,7 @@ tar xvf $WORK/$FILE -C $WORK || exit 1
mkdir -p $HOME/.local/share || exit 1
# Install
-if [ "$APP" == "tor-browser" ]; then
+if [ "$APP" = "tor-browser" ]; then
# Always use the "latest" folder. Tor Browser has a self-update mechanism that
# will ensure that this installation is always the latest.
mkdir -p $HOME/.local/share || exit 1
@@ -70,7 +70,7 @@ if [ "$APP" == "tor-browser" ]; then
mkdir -p $APP/$ARCH || exit 1
mv $WORK/tor-browser $APP/$ARCH/latest || exit 1
rm -rf $WORK || exit 1
-elif [ "$APP" == "tor-browser-alpha" ]; then
+elif [ "$APP" = "tor-browser-alpha" ]; then
# Since this is an alpha version, use per-version folders
cd $HOME/.local/share || exit 1
rm -rf $APP/$ARCH/$VERSION || exit 1
@@ -87,7 +87,7 @@ cd $HOME/.local/bin
ln -sf $HOME/.local/share/$APP/$ARCH/latest/Browser/start-tor-browser $APP-${ARCH} || exit 1
# Additional symlink for the alpha version
-if [ "$APP" == "tor-browser-alpha" ]; then
+if [ "$APP" = "tor-browser-alpha" ]; then
ln -sf $HOME/.local/share/$APP/$ARCH/$VERSION/Browser/start-tor-browser $APP-${ARCH}-${VERSION} || exit 1
fi