Avoid shell errors when /proc/net/xt_recent/ is empty.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2016-11-03 21:29:01 -07:00
parent 8441ac5c5f
commit cecfe54ef6
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -949,7 +949,7 @@ show_events() {
for file in /proc/net/xt_recent/*; do
base=$(basename $file)
if [ $base != %CURRENTTIME ]; then
if [ "$base" != %CURRENTTIME -a "$base" != "*" ]; then
echo $base
show_event $base
echo