From 80e2a7e486da2983e0896d34568cdeb74a2c5be4 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Tue, 18 Feb 2014 19:46:39 +0100 Subject: [PATCH] Update installer.sh --- src/build/installer.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/build/installer.sh b/src/build/installer.sh index cc6755976..1bf0a9804 100644 --- a/src/build/installer.sh +++ b/src/build/installer.sh @@ -81,10 +81,10 @@ else echo " detecting if build is available..." if [ "$forcecompile" == "off" ] && [ "$(uname -s)" == "Darwin" ]; then set +e - UNAME_M=`uname -m` - IS_IOS=`expr match $UNAME_M 'iP[a-zA-Z0-9,]*'` + UNAME_M=$(uname -m) + IS_IOS=$(expr match $UNAME_M 'iP[a-zA-Z0-9,]*' 2> /dev/null) set -e - if [ $IS_IOS -gt 0 2> /dev/null ]; then + if [[ $IS_IOS -gt 0 ]]; then rm -r -f bin/ >> /dev/null 2>&1 echo -n "[3/3] iOS PHP build available, downloading $IOS_BUILD.tar.gz..." download_file "http://sourceforge.net/projects/pocketmine/files/builds/$IOS_BUILD.tar.gz" | tar -zx > /dev/null 2>&1