From 1759038d58ecd93f408773f44b17780a2e0be286 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Mon, 11 Aug 2008 03:45:55 +0000 Subject: [PATCH] Fixed sake to pass cli-script error levels through git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60355 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- sake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sake b/sake index 1f012fb37..dd407d1d8 100755 --- a/sake +++ b/sake @@ -16,7 +16,7 @@ fi # Find the PHP binary for candidatephp in php5 php; do - if [ -f `which $candidatephp` ]; then + if [ `which $candidatephp` -a -f `which $candidatephp` ]; then php=`which $candidatephp` break fi @@ -29,12 +29,12 @@ fi if [ -d ./sapphire ]; then $php ./sapphire/cli-script.php $1 $2 - exit 0 + exit $? fi if [ -f ./cli-script.php ]; then $php ./cli-script.php $1 $2 - exit 0 + exit $? fi echo "Can't find ./sapphire/cli-script.php or ./cli-script.php"