No need to explicitly check for both cases when using grep -i.
This commit is contained in:
parent
17b6d49a7c
commit
5ccd83be46
@ -53,7 +53,7 @@ case "$daily_status_security_loginfail_enable" in
|
||||
[Yy][Ee][Ss])
|
||||
echo ""
|
||||
echo "${host} login failures:"
|
||||
n=$(catmsgs | grep -ia "^$yesterday.*[fF]ail" |
|
||||
n=$(catmsgs | grep -ia "^$yesterday.*fail" |
|
||||
tee /dev/stderr | wc -l)
|
||||
[ $n -gt 0 ] && rc=1 || rc=0;;
|
||||
*) rc=0;;
|
||||
|
Loading…
Reference in New Issue
Block a user