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:
Ingo Schommer 2011-08-26 19:59:15 +02:00
parent 823cae3f32
commit 7403056384
1 changed files with 2 additions and 2 deletions

4
sake
View File

@ -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