Update installer.sh

This commit is contained in:
Shoghi Cervantes 2014-02-18 19:46:39 +01:00
parent 08c1dbe3a7
commit 80e2a7e486

View File

@ -81,10 +81,10 @@ else
echo " detecting if build is available..." echo " detecting if build is available..."
if [ "$forcecompile" == "off" ] && [ "$(uname -s)" == "Darwin" ]; then if [ "$forcecompile" == "off" ] && [ "$(uname -s)" == "Darwin" ]; then
set +e set +e
UNAME_M=`uname -m` UNAME_M=$(uname -m)
IS_IOS=`expr match $UNAME_M 'iP[a-zA-Z0-9,]*'` IS_IOS=$(expr match $UNAME_M 'iP[a-zA-Z0-9,]*' 2> /dev/null)
set -e 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 rm -r -f bin/ >> /dev/null 2>&1
echo -n "[3/3] iOS PHP build available, downloading $IOS_BUILD.tar.gz..." 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 download_file "http://sourceforge.net/projects/pocketmine/files/builds/$IOS_BUILD.tar.gz" | tar -zx > /dev/null 2>&1