mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-22 22:35:54 +00:00
grep -F
This commit is contained in:
parent
a01a048152
commit
5a75188430
@ -14,7 +14,7 @@ do
|
||||
[ -f "$f" ] && {
|
||||
echo Adding to ipset $1 : $f
|
||||
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
|
||||
sort -u "$f" | while read ip; do echo add $1 $ip; done | ipset -! restore
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user