From c21350f15e14f7f0a72c7f684b2e8de4057977b8 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 15 Jul 2023 00:37:38 +0300 Subject: [PATCH] ... Signed-off-by: Alex A. Naanou --- check-status | 3 +++ 1 file changed, 3 insertions(+) diff --git a/check-status b/check-status index 07e5660..93f2b1d 100644 --- a/check-status +++ b/check-status @@ -203,6 +203,9 @@ check-http(){ if [ "$(grep "$status_pattern" <<<$response)" ] ; then response=OK else + if [ -z $response ] ; then + response='Timeout?' + fi response="ERROR ($response)" fi