From b1d75e53a1846f5eee29ab14059b9a8dac280c0a Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 27 Jul 2015 07:23:39 -0700 Subject: [PATCH] Correct syntax error in lib.cli Signed-off-by: Tom Eastep --- Shorewall-core/lib.cli | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Shorewall-core/lib.cli b/Shorewall-core/lib.cli index 2d8da585a..e92def989 100644 --- a/Shorewall-core/lib.cli +++ b/Shorewall-core/lib.cli @@ -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)