From af6174508d231f0d8ff2f097b2d4e81c178a0cba Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Fri, 7 Feb 2014 19:15:00 +0100 Subject: [PATCH] MacOS fix --- src/build/installer.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/build/installer.sh b/src/build/installer.sh index a65115df0..d8e90dec9 100644 --- a/src/build/installer.sh +++ b/src/build/installer.sh @@ -71,7 +71,8 @@ else echo -n "[3/3] Obtaining PHP:" echo " detecting if build is available..." if [ "$(uname -s)" == "Darwin" ]; then - 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,]*') 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..."