Remove the target file before saving ipsets in the savesets command

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2014-09-28 11:53:52 -07:00
parent cbcb1ff7e1
commit 6f7d063921

View File

@ -386,6 +386,7 @@ case "$COMMAND" in
;; ;;
savesets) savesets)
if [ $# -eq 2 ]; then if [ $# -eq 2 ]; then
rm -f $2
save_ipsets $2 save_ipsets $2
else else
usage 2 usage 2