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

4
sake
View File

@ -27,8 +27,8 @@ fi
# Find the PHP binary # Find the PHP binary
for candidatephp in php php5; do for candidatephp in php php5; do
if [ `which $candidatephp` -a -f `which $candidatephp` ]; then if [ `which $candidatephp 2>/dev/null` -a -f `which $candidatephp 2>/dev/null` ]; then
php=`which $candidatephp` php=`which $candidatephp 2>/dev/null`
break break
fi fi
done done