Преглед изворни кода

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