Skip to content

Commit c250fd4

Browse files
committed
Fix wget
1 parent c6b125c commit c250fd4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

swiftbox.sh

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

3-
SWIFTBOX_VERSION="0.9.4"
3+
SWIFTBOX_VERSION="0.9.5"
44
INSTALL_DIR="/usr/bin"
55

66
if [ `id -u` = 0 ]
@@ -24,9 +24,9 @@ then
2424
SYSTEM_NAME="centos"
2525
SYSTEM_NICENAME="CentOS/RHEL"
2626
SYSTEM_VERSION=`cat /etc/redhat-release | sed -r 's/.* ([0-9]+)\..*/\1/'`
27-
if ! hash curl 2> /dev/null
27+
if ! hash curl 2> /dev/null || ! hash wget 2> /dev/null
2828
then
29-
$SUDO_FLAG yum install curl -q -y
29+
$SUDO_FLAG yum install curl wget -q -y
3030
fi
3131
else
3232
UNSUPPORTED_SYSTEM=$REDHAT_RELEASE
@@ -39,10 +39,10 @@ then
3939
SYSTEM_NAME="ubuntu"
4040
SYSTEM_NICENAME="Ubuntu"
4141
SYSTEM_VERSION=$VERSION_ID
42-
if ! hash curl 2> /dev/null || ! hash realpath 2> /dev/null
42+
if ! hash curl 2> /dev/null || ! hash realpath 2> /dev/null || ! hash wget 2> /dev/null
4343
then
4444
$SUDO_FLAG apt-get update -q=2
45-
$SUDO_FLAG apt-get install coreutils curl -q=2
45+
$SUDO_FLAG apt-get install coreutils curl wget -q=2
4646
fi
4747
else
4848
UNSUPPORTED_SYSTEM="$NAME $VERSION"
@@ -114,11 +114,11 @@ init-env() {
114114
enable-swiftbox
115115
case $SYSTEM_NAME in
116116
ubuntu)
117-
$SUDO_FLAG apt-get install gnupg git libpython2.7 binutils tzdata libxml2 clang libicu-dev wget pkg-config zlib1g-dev libedit2 libsqlite3-0 -y
117+
$SUDO_FLAG apt-get install gnupg git libpython2.7 binutils tzdata libxml2 clang libicu-dev pkg-config zlib1g-dev libedit2 libsqlite3-0 -y
118118
;;
119119
centos)
120120
$SUDO_FLAG yum install epel-release -y
121-
$SUDO_FLAG yum install --enablerepo=PowerTools curl wget binutils gcc git glibc-static libbsd-devel libedit libedit-devel libicu-devel libstdc++-static pkg-config python2 sqlite -y
121+
$SUDO_FLAG yum install --enablerepo=PowerTools binutils gcc git glibc-static libbsd-devel libedit libedit-devel libicu-devel libstdc++-static pkg-config python2 sqlite -y
122122
;;
123123
esac
124124
wget -q -O - https://swift.org/keys/all-keys.asc | $SUDO_FLAG gpg --import -

0 commit comments

Comments
 (0)