mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Don't show CLI warnings from 'which' command in sake bash script by piping them to /dev/null ('which' fails silently on Debian, but produces warnings on CentOS) (AIR-25)
This commit is contained in:
parent
823cae3f32
commit
7403056384
4
sake
4
sake
@ -27,8 +27,8 @@ fi
|
||||
|
||||
# Find the PHP binary
|
||||
for candidatephp in php php5; do
|
||||
if [ `which $candidatephp` -a -f `which $candidatephp` ]; then
|
||||
php=`which $candidatephp`
|
||||
if [ `which $candidatephp 2>/dev/null` -a -f `which $candidatephp 2>/dev/null` ]; then
|
||||
php=`which $candidatephp 2>/dev/null`
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user