This commit is contained in:
bolvan 2017-06-16 12:27:08 +03:00
parent a01a048152
commit 5a75188430

View File

@ -14,7 +14,7 @@ do
[ -f "$f" ] && { [ -f "$f" ] && {
echo Adding to ipset $1 : $f echo Adding to ipset $1 : $f
if [ -f "$ZIPLIST_EXCLUDE" ] ; then if [ -f "$ZIPLIST_EXCLUDE" ] ; then
grep -vxf $ZIPLIST_EXCLUDE "$f" | sort -u | while read ip; do echo add $1 $ip; done | ipset -! restore grep -vxFf $ZIPLIST_EXCLUDE "$f" | sort -u | while read ip; do echo add $1 $ip; done | ipset -! restore
else else
sort -u "$f" | while read ip; do echo add $1 $ip; done | ipset -! restore sort -u "$f" | while read ip; do echo add $1 $ip; done | ipset -! restore
fi fi