Permalink
Browse files

Fixed Darwin php interpreter determination for newer MAMP

  • Loading branch information...
Oliver Input Oliver Input
Oliver Input authored and Oliver Input committed May 28, 2012
1 parent abfa1d5 commit d2cb9e42e5ed857059d015052c1687167e64044b
Showing with 5 additions and 1 deletion.
  1. +5 −1 cake/console/cake
View
@@ -22,7 +22,11 @@ LIB=${0/%cake/}
APP=`pwd`
if [ `uname` == 'Darwin' ]; then
- PHP="/Applications/MAMP/bin/php5/bin/php -d mysql.default_socket=/Applications/MAMP/tmp/mysql/mysql.sock"
+ if [ -f "/Applications/MAMP/bin/php/php5.3.6/bin/php" ] ; then
+ PHP="/Applications/MAMP/bin/php/php5.3.6/bin/php -d mysql.default_socket=/Applications/MAMP/tmp/mysql/mysql.sock"
+ else
+ PHP="/Applications/MAMP/bin/php5/bin/php -d mysql.default_socket=/Applications/MAMP/tmp/mysql/mysql.sock"
+ fi
else
PHP=`which php`
fi

0 comments on commit d2cb9e4

Please sign in to comment.