Skip to content

Commit

Permalink
opensipsctl: Supress random "path not found" errors
Browse files Browse the repository at this point in the history
In case a binary is not found (e.g. gdb), opensipsctl will properly
report this by default when its related command is called.

(cherry picked from commit 5717839)
  • Loading branch information
liviuchircu committed Apr 5, 2017
1 parent a8691b4 commit 8ff5cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/opensipsctl.base
Expand Up @@ -12,7 +12,7 @@ locate_tool() {
while [ -n "$1" ]
do
if [ -x /usr/bin/which ] ; then
TOOLPATH=`/usr/bin/which $1`
TOOLPATH=$(/usr/bin/which $1 2>/dev/null)
if [ -n "$TOOLPATH" ]; then
return
fi
Expand Down

0 comments on commit 8ff5cf7

Please sign in to comment.