Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUGFIX Don't show CLI warnings from 'which' command in sake bash scri…

…pt by piping them to /dev/null ('which' fails silently on Debian, but produces warnings on CentOS) (AIR-25)
  • Loading branch information...
commit 7403056384273c49cff7170c643a1e932f81e238 1 parent 823cae3
@chillu chillu authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 sake
View
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
Please sign in to comment.
Something went wrong with that request. Please try again.