From 7403056384273c49cff7170c643a1e932f81e238 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 26 Aug 2011 19:59:15 +0200 Subject: [PATCH] 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) --- sake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sake b/sake index b20019aa5..3974d50bf 100644 --- a/sake +++ b/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