mirror of
https://github.com/privacy-protection-tools/anti-AD.git
synced 2025-01-22 22:39:16 +08:00
30 lines
569 B
Bash
Executable File
30 lines
569 B
Bash
Executable File
#!/bin/sh
|
|
|
|
source /etc/profile
|
|
|
|
cd $(cd "$(dirname "$0")";pwd)
|
|
echo pwd is: `pwd`
|
|
git pull
|
|
|
|
echo '开始下载 easylist1...'
|
|
wget -O easylistchina+easylist.txt https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt
|
|
|
|
if [ $? -ne 0 ];then
|
|
echo '下载失败,请重试'
|
|
exit 1
|
|
fi
|
|
|
|
echo '开始下载 easylist2...'
|
|
wget -O koolproxy.txt https://kprule.com/koolproxy.txt
|
|
|
|
if [ $? -ne 0 ];then
|
|
echo '下载失败,请重试'
|
|
exit 1
|
|
fi
|
|
|
|
/usr/local/php/bin/php make-addr.php
|
|
|
|
git add adblock-for-dnsmasq.conf
|
|
git commit -am "auto commit"
|
|
git push --force
|