소스 검색

kamdbctl: divert stderr when searching for greadlink

Daniel-Constantin Mierla 10 년 전
부모
커밋
2bd19e232e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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")