mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-21 10:18:58 +02:00
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 [ -n "$IPSET" ]; then
|
||||||
if eval $IPSET -S > ${VARDIR}/ipsets.tmp; then
|
if eval $IPSET -S > ${VARDIR}/ipsets.tmp; then
|
||||||
#
|
#
|
||||||
# Don't save an 'empty' file
|
# Don't save an 'empty' file
|
||||||
#
|
#
|
||||||
grep -qE -- '^(-N|create )' ${VARDIR}/ipsets.tmp && mv -f ${VARDIR}/ipsets.tmp ${g_restorepath}-ipsets
|
grep -qE -- '^(-N|create )' ${VARDIR}/ipsets.tmp && mv -f ${VARDIR}/ipsets.tmp ${g_restorepath}-ipsets
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
[Nn]o|ipv4|ipv6)
|
[Nn]o|ipv4|ipv6)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user