mirror of
https://github.com/privacy-protection-tools/anti-AD.git
synced 2025-01-22 22:39:16 +08:00
17 lines
366 B
Bash
Executable File
17 lines
366 B
Bash
Executable File
#!/bin/bash
|
|
#每天运行一次
|
|
|
|
source /etc/profile
|
|
cd $(cd "$(dirname "$0")";pwd)
|
|
|
|
cd ../origin-files
|
|
rm -f split-tmp-list_*
|
|
split -l 5000 ../adblock-for-dnsmasq.conf split-tmp-list_
|
|
cd ../tools
|
|
git pull
|
|
|
|
# shellcheck disable=SC2045
|
|
for f in $(ls ../origin-files/split-tmp-list_*)
|
|
do
|
|
nohup php valid-addr.php $(basename "$f") >> ./std-$(basename "$f").out &
|
|
done |