send stderr from 'which' to /dev/null

This commit is contained in:
Josh Holtrop committed 2011-01-11 10:19:50 -05:00
1 parent 3f427971fd
commit f284342632
1 file changed
+3 -3
+3 -3
View File
@@ -110,9 +110,9 @@ function svndiff()
function svn()
{
subcommand="$1"
realsvn=$(which svn)
colorsvn=$(which colorsvn)
colordiff=$(which colordiff)
realsvn=$(which svn 2>/dev/null)
colorsvn=$(which colorsvn 2>/dev/null)
colordiff=$(which colordiff 2>/dev/null)
if [[ "$realsvn" == "" ]]; then
echo "Subversion not found in \$PATH"
return