Skip to content

Commit 3e522aa

Browse files
committed
Minor bugfixes
1 parent e3fdaa2 commit 3e522aa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ else
6060
SUCCESS_MESSAGE="Successfully installed swiftbox $LATEST_VERSION at $INSTALL_DIR. "
6161
fi
6262

63-
$SUDO_FLAG curl -o $INSTALL_DIR/swiftbox https://cdn.jsdelivr.net/gh/stevapple/swiftbox@$LATEST_VERSION/swiftbox.sh
63+
$SUDO_FLAG curl -o $INSTALL_DIR/swiftbox https://cdn.jsdelivr.net/gh/stevapple/swiftbox@$LATEST_VERSION/swiftbox.sh -#
6464
$SUDO_FLAG chmod +x $INSTALL_DIR/swiftbox
6565
hash -r
6666
echo $SUCCESS_MESSAGE

swiftbox.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
SWIFTBOX_VERSION="0.7.1"
3+
SWIFTBOX_VERSION="0.7.2"
44
INSTALL_DIR="/usr/bin"
55

66
if [ -f /etc/redhat-release ]
@@ -31,7 +31,7 @@ else
3131
UNSUPPORTED_SYSTEM="This strange OS"
3232
fi
3333

34-
if [ $UNSUPPORTED_SYSTEM ]
34+
if [ "$UNSUPPORTED_SYSTEM" ]
3535
then
3636
echo "This program only supports Ubuntu and CentOS (RHEL). "
3737
echo "$UNSUPPORTED_SYSTEM is unsupported. "
@@ -394,4 +394,4 @@ list)
394394
echo "Unsupported command: $1"
395395
exit 3
396396
;;
397-
esac
397+
esac

0 commit comments

Comments
 (0)