From 22890aa29a7cfa46d06b916cfccd8de4c17b82d9 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Mon, 25 May 2020 20:45:15 +0300 Subject: [PATCH] Small fixes --- doall.sh | 3 +++ parse.sh | 2 ++ process.sh | 2 ++ 3 files changed, 7 insertions(+) diff --git a/doall.sh b/doall.sh index b7e2cce..bb6e296 100755 --- a/doall.sh +++ b/doall.sh @@ -1,4 +1,7 @@ #!/bin/bash + +set -e + HERE="$(dirname "$(readlink -f "${0}")")" cd "$HERE" diff --git a/parse.sh b/parse.sh index 02a9402..479e472 100755 --- a/parse.sh +++ b/parse.sh @@ -77,3 +77,5 @@ echo "iplist_all: $(wc -l result/iplist_all.txt)" >&2 echo "iplist_special_range: $(wc -l result/iplist_special_range.txt)" >&2 echo "iplist_blockedbyip: $(wc -l result/iplist_blockedbyip.txt)" >&2 echo "iplist_blockedbyip_noid2971: $(wc -l result/iplist_blockedbyip_noid2971.txt)" >&2 + +exit 0 diff --git a/process.sh b/process.sh index 0ee1f9c..9fd553f 100755 --- a/process.sh +++ b/process.sh @@ -17,3 +17,5 @@ set -e #cp result/squid-whitelist-zones.conf /etc/squid/whitelistedhosts.txt #cp result/iplist_all.txt /etc/squid/whitelistedips.txt #systemctl reload squid || true + +exit 0