send stderr from 'which' to /dev/null
This commit is contained in:
1 parent
3f427971fd
commit
f284342632
1 file changed
+3
-3
+3
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user