create_ipset cosmetic fix

This commit is contained in:
bolvan 2016-03-16 08:48:14 +03:00
parent d3e53ebede
commit f28b87331a

View File

@ -18,6 +18,7 @@ do
[ -f $TEMPIPSET ] && rm -f $TEMPIPSET
[ -f "$f" ] && {
echo Adding to ipset "$1" : $f
touch $TEMPIPSET
sort $f | uniq | while read ip;
do
echo add $1 $ip >>$TEMPIPSET