diff --git a/update.sh b/update.sh index c2650f2..6ab0087 100755 --- a/update.sh +++ b/update.sh @@ -1,8 +1,13 @@ -pushd ~/ip_lists/ +#!/bin/bash +echo "Starting" +date + +cd ~/ip_lists/ git pull cat ~/domain_resolver/ips_out.txt ~/ip_lists/blocklist.txt | sort | uniq > ~/ip_lists/tmp mv tmp blocklist.txt git add blocklist.txt git commit -m "Auto-update" git push -popd + +echo ""