From 16b3d3168ed3d46e53c45bff703bede1244f8d0e Mon Sep 17 00:00:00 2001 From: Aaron Johnson Date: Wed, 21 Jul 2021 05:26:10 -0500 Subject: [PATCH] Sorting the site list (imperfect) and eliminating duplicates --- http_check_telegram | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_check_telegram b/http_check_telegram index 0406e0a..89fb000 100755 --- a/http_check_telegram +++ b/http_check_telegram @@ -62,7 +62,7 @@ MSG='HTTP/S Problems Found:' FAILURE=false # Check HTTP codes -for site in $(grep -v "^#\|^$" $CHKLIST); do +for site in $(grep -v "^#\|^$" $CHKLIST | sort | uniq); do respcode=$(get_http_code $site) case $respcode in 000)