From 9ce19984f3fc13c4c73fd029db3118ff987c87cb Mon Sep 17 00:00:00 2001 From: kapsi Date: Thu, 9 Mar 2023 09:08:23 +0000 Subject: [PATCH] Update update.sh --- update.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 ""