From 84ac3b5bb0659cae2adf50cd7fe31bf414c9acd9 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Sun, 1 Dec 2019 07:52:57 +0300 Subject: [PATCH] Add exit 0 to the end of the script to prevent last exit code from being used --- update.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/update.sh b/update.sh index de98717..4ad1bd2 100755 --- a/update.sh +++ b/update.sh @@ -14,3 +14,5 @@ LISTSIZE="$(curl -sI "$LISTLINK" | awk 'BEGIN {IGNORECASE=1;} /content-length/ { [[ "$LISTSIZE" != "$(stat -c '%s' temp/list_orig.csv)" ]] && echo "List 1 size differs" && exit 2 LISTSIZE="$(curl -sI "$NXDOMAINLINK" | awk 'BEGIN {IGNORECASE=1;} /content-length/ {sub(/[ \t\r\n]+$/, "", $2); print $2}')" [[ "$LISTSIZE" != "$(stat -c '%s' temp/nxdomain.txt)" ]] && echo "List 2 size differs" && exit 2 + +exit 0