Browse files

Silence error output in calls to "which"

  • Loading branch information...
1 parent 2ea06e7 commit 119ce9e801a5a9df57e436a79b805960e60f6b0d @rg3 committed Nov 2, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lddsafe
View
2 lddsafe
@@ -19,7 +19,7 @@ die()
# Find required program.
findexec()
{
- which "$1" || die "$1 not found"
+ which "$1" 2>/dev/null || die "$1 not found"
}
# Check file exists and is executable.

0 comments on commit 119ce9e

Please sign in to comment.