Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed Darwin php interpreter determination for newer MAMP

  • Loading branch information...
commit d2cb9e42e5ed857059d015052c1687167e64044b 1 parent abfa1d5
authored May 28, 2012

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. 6  cake/console/cake
6  cake/console/cake
@@ -22,7 +22,11 @@ LIB=${0/%cake/}
22 22
 APP=`pwd`
23 23
 
24 24
 if [ `uname` == 'Darwin' ]; then
25  
-	PHP="/Applications/MAMP/bin/php5/bin/php -d mysql.default_socket=/Applications/MAMP/tmp/mysql/mysql.sock"
  25
+	if [ -f "/Applications/MAMP/bin/php/php5.3.6/bin/php" ] ; then
  26
+		PHP="/Applications/MAMP/bin/php/php5.3.6/bin/php -d mysql.default_socket=/Applications/MAMP/tmp/mysql/mysql.sock"
  27
+	else
  28
+		PHP="/Applications/MAMP/bin/php5/bin/php -d mysql.default_socket=/Applications/MAMP/tmp/mysql/mysql.sock"
  29
+	fi
26 30
 else
27 31
 	PHP=`which php`
28 32
 fi

0 notes on commit d2cb9e4

Please sign in to comment.
Something went wrong with that request. Please try again.