Pārlūkot izejas kodu

Merge pull request #8 from mikedowney01/master

correct check_bro.sh to ignore 'Getting status' messages
Jon Schipp 11 gadi atpakaļ
vecāks
revīzija
49a58375a9
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      check_bro.sh

+ 1 - 1
check_bro.sh

@@ -207,7 +207,7 @@ if [ $STATUS_CHECK -eq 1 ]; then
 # Broctl stderr is whitespace separated and we need to match on entire line
 # Broctl stderr is whitespace separated and we need to match on entire line
 IFS=$'\n'
 IFS=$'\n'
 
 
-  for line in $($BROCTL status 2>&1 | grep -v 'Name\|waiting')
+  for line in $($BROCTL status 2>&1 | grep -v 'Name\|waiting\|Getting')
   do
   do
     NAME=$(echo "$line" | awk '{ print $1 }')
     NAME=$(echo "$line" | awk '{ print $1 }')
     case "$line" in
     case "$line" in