mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-12 04:37:01 +02:00
Avoid shell errors when /proc/net/xt_recent/ is empty.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
8441ac5c5f
commit
cecfe54ef6
@ -949,7 +949,7 @@ show_events() {
|
|||||||
for file in /proc/net/xt_recent/*; do
|
for file in /proc/net/xt_recent/*; do
|
||||||
base=$(basename $file)
|
base=$(basename $file)
|
||||||
|
|
||||||
if [ $base != %CURRENTTIME ]; then
|
if [ "$base" != %CURRENTTIME -a "$base" != "*" ]; then
|
||||||
echo $base
|
echo $base
|
||||||
show_event $base
|
show_event $base
|
||||||
echo
|
echo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user