Skip to content
This repository
Browse code

unbrake Console/cake on osx

  • Loading branch information...
commit 52f206064d818fd6827db68444d98acf0ad51b44 1 parent 5140baf
Andy Dawson authored October 04, 2012

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

  1. 6  app/Console/cake
6  app/Console/cake
@@ -17,7 +17,11 @@
17 17
 # @license      MIT License (http://www.opensource.org/licenses/mit-license.php)
18 18
 #
19 19
 ################################################################################
20  
-ME=$(readlink -f $0)
  20
+if [[ `uname` =~ 'Darwin' ]]; then
  21
+	ME=$0
  22
+else
  23
+	ME=$(readlink -f $0)
  24
+fi
21 25
 LIB=$(cd -P -- "$(dirname -- "$ME")" && pwd -P) && LIB=$LIB/$(basename -- "$ME")
22 26
 
23 27
 while [ -h "$LIB" ]; do

0 notes on commit 52f2060

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