Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
Fixed Darwin php interpreter determination for newer MAMP
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Input authored and Oliver Input committed May 28, 2012
1 parent abfa1d5 commit d2cb9e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cake/console/cake
Expand Up @@ -22,7 +22,11 @@ LIB=${0/%cake/}
APP=`pwd` APP=`pwd`


if [ `uname` == 'Darwin' ]; then 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 else
PHP=`which php` PHP=`which php`
fi fi
Expand Down

0 comments on commit d2cb9e4

Please sign in to comment.