소스 검색

Fix #539 - replacing [[ with [ to remain POSIX-compliant

madlohe 5 년 전
부모
커밋
c741ac893f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      plugins-scripts/check_log.sh

+ 1 - 1
plugins-scripts/check_log.sh

@@ -215,7 +215,7 @@ diff "$logfile" "$oldlog" | grep -v "^>" > "$tempdiff"
 
 # Count the number of matching log entries we have and handle errors when grep fails
 count=$(grep -c "$query" "$tempdiff" 2>&1)
-if [[ $? -gt 1 ]];then
+if [ $? -gt 1 ];then
     echo "Log check error: $count"
     exit "$STATE_UNKNOWN"
 fi