Update update.sh
This commit is contained in:
parent
c7be0a70e9
commit
9ce19984f3
|
@ -1,8 +1,13 @@
|
||||||
pushd ~/ip_lists/
|
#!/bin/bash
|
||||||
|
echo "Starting"
|
||||||
|
date
|
||||||
|
|
||||||
|
cd ~/ip_lists/
|
||||||
git pull
|
git pull
|
||||||
cat ~/domain_resolver/ips_out.txt ~/ip_lists/blocklist.txt | sort | uniq > ~/ip_lists/tmp
|
cat ~/domain_resolver/ips_out.txt ~/ip_lists/blocklist.txt | sort | uniq > ~/ip_lists/tmp
|
||||||
mv tmp blocklist.txt
|
mv tmp blocklist.txt
|
||||||
git add blocklist.txt
|
git add blocklist.txt
|
||||||
git commit -m "Auto-update"
|
git commit -m "Auto-update"
|
||||||
git push
|
git push
|
||||||
popd
|
|
||||||
|
echo ""
|
||||||
|
|
Loading…
Reference in New Issue