forked from extern/shorewall_code
Correct syntax error in lib.cli
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
2356b814e9
commit
b1d75e53a1
@ -455,10 +455,11 @@ do_save() {
|
||||
|
||||
if [ -n "$IPSET" ]; then
|
||||
if eval $IPSET -S > ${VARDIR}/ipsets.tmp; then
|
||||
#
|
||||
# Don't save an 'empty' file
|
||||
#
|
||||
grep -qE -- '^(-N|create )' ${VARDIR}/ipsets.tmp && mv -f ${VARDIR}/ipsets.tmp ${g_restorepath}-ipsets
|
||||
#
|
||||
# Don't save an 'empty' file
|
||||
#
|
||||
grep -qE -- '^(-N|create )' ${VARDIR}/ipsets.tmp && mv -f ${VARDIR}/ipsets.tmp ${g_restorepath}-ipsets
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
[Nn]o|ipv4|ipv6)
|
||||
|
Loading…
Reference in New Issue
Block a user