mirror of
https://github.com/bol-van/zapret.git
synced 2025-04-19 21:42:59 +03:00
move dig-specific filter to digger()
This commit is contained in:
parent
c070cc9528
commit
38ab24da68
@ -19,7 +19,7 @@ digger()
|
|||||||
if [ -x $MDIG ]; then
|
if [ -x $MDIG ]; then
|
||||||
$MDIG --family=4 --threads=$MDIG_THREADS <$1
|
$MDIG --family=4 --threads=$MDIG_THREADS <$1
|
||||||
else
|
else
|
||||||
dig A +short +time=8 +tries=2 -f $1
|
dig A +short +time=8 +tries=2 -f $1 | grep -E '^[^;].*[^\.]$'
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ echo preparing dig list ..
|
|||||||
cut -f2 -d';' $ZREESTR | grep -avE '^$|\*|:' >$ZDIG
|
cut -f2 -d';' $ZREESTR | grep -avE '^$|\*|:' >$ZDIG
|
||||||
rm -f $ZREESTR
|
rm -f $ZREESTR
|
||||||
echo digging started ...
|
echo digging started ...
|
||||||
digger $ZDIG | grep -E '^[^;].*[^\.]$' | cut_local >$ZIPLISTTMP || {
|
digger $ZDIG | cut_local >$ZIPLISTTMP || {
|
||||||
rm -f $ZDIG
|
rm -f $ZDIG
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user