[sr-dev] git:master:2bd19e23: kamdbctl: divert stderr when searching for greadlink
Daniel-Constantin Mierla
miconda at gmail.com
Mon Nov 2 15:24:31 CET 2015
Module: kamailio
Branch: master
Commit: 2bd19e232ece9bf0a090ba34d505d9ed6c9753a5
URL: https://github.com/kamailio/kamailio/commit/2bd19e232ece9bf0a090ba34d505d9ed6c9753a5
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-11-02T15:23:31+01:00
kamdbctl: divert stderr when searching for greadlink
---
Modified: utils/kamctl/kamdbctl
---
Diff: https://github.com/kamailio/kamailio/commit/2bd19e232ece9bf0a090ba34d505d9ed6c9753a5.diff
Patch: https://github.com/kamailio/kamailio/commit/2bd19e232ece9bf0a090ba34d505d9ed6c9753a5.patch
---
diff --git a/utils/kamctl/kamdbctl b/utils/kamctl/kamdbctl
index 13f227e..e8915d1 100755
--- a/utils/kamctl/kamdbctl
+++ b/utils/kamctl/kamdbctl
@@ -16,12 +16,12 @@ TEST="false"
### include resource files, if any
# check for rc file at same location with kamdbctl
-which greadlink > /dev/null
+which greadlink > /dev/null 2>&1
ret=$?
if [ $ret -eq 0 ] ; then
KAMCTLFULLPATH=$(greadlink -f "$0")
else
- which readlink > /dev/null
+ which readlink > /dev/null 2>&1
ret=$?
if [ $ret -eq 0 ] ; then
KAMCTLFULLPATH=$(readlink -f "$0")
More information about the sr-dev
mailing list