mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-02 14:40:52 +03:00
grep -F
This commit is contained in:
parent
a01a048152
commit
5a75188430
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user