Browse Source

kamdbctl: divert stderr when searching for greadlink

Daniel-Constantin Mierla 10 năm trước cách đây
mục cha
commit
2bd19e232e
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      utils/kamctl/kamdbctl

+ 2 - 2
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")