Module: sip-router
Branch: master
Commit: ed301d16f30195d9352245f782269f2b3ddf40cf
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ed301d1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Nov 25 16:07:31 2014 +0100
kamctl: supress all output of which command searching for g/readlink
- based on patch and report by Morten Tryfoss, FS#492
---
utils/kamctl/kamctl | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/utils/kamctl/kamctl b/utils/kamctl/kamctl
index f1b3109..9fcd170 100755
--- a/utils/kamctl/kamctl
+++ b/utils/kamctl/kamctl
@@ -16,12 +16,12 @@ TEST="false"
### include config files
# check for rc file at same location with kamctl
-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")