Просмотр исходного кода

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

madlohe 5 лет назад
Родитель
Сommit
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