mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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
This commit is contained in:
parent
46417f5d8a
commit
1759038d58
6
sake
6
sake
@ -16,7 +16,7 @@ fi
|
|||||||
|
|
||||||
# Find the PHP binary
|
# Find the PHP binary
|
||||||
for candidatephp in php5 php; do
|
for candidatephp in php5 php; do
|
||||||
if [ -f `which $candidatephp` ]; then
|
if [ `which $candidatephp` -a -f `which $candidatephp` ]; then
|
||||||
php=`which $candidatephp`
|
php=`which $candidatephp`
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
@ -29,12 +29,12 @@ fi
|
|||||||
|
|
||||||
if [ -d ./sapphire ]; then
|
if [ -d ./sapphire ]; then
|
||||||
$php ./sapphire/cli-script.php $1 $2
|
$php ./sapphire/cli-script.php $1 $2
|
||||||
exit 0
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f ./cli-script.php ]; then
|
if [ -f ./cli-script.php ]; then
|
||||||
$php ./cli-script.php $1 $2
|
$php ./cli-script.php $1 $2
|
||||||
exit 0
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Can't find ./sapphire/cli-script.php or ./cli-script.php"
|
echo "Can't find ./sapphire/cli-script.php or ./cli-script.php"
|
||||||
|
Loading…
Reference in New Issue
Block a user