Compare commits

...

3 Commits

Author SHA1 Message Date
0c25f301ee tweak
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2023-07-15 01:14:59 +03:00
c21350f15e ...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2023-07-15 00:37:38 +03:00
af43433b77 bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2023-07-14 21:36:29 +03:00

View File

@ -203,7 +203,11 @@ check-http(){
if [ "$(grep "$status_pattern" <<<$response)" ] ; then
response=OK
else
response="ERROR ($response)"
if [ -z $response ] ; then
response='ERROR: TIMEOUT'
else
response="ERROR ($response)"
fi
fi
echo $response
@ -219,6 +223,7 @@ check(){
# NOTE: we are preserving whitespace here...
local comment=`sed \
-e 's/^\(.*\)\('"$PROTOCOLS"'\):\/\/.*$/\1/' \
-e 's/\s*$//' \
<<<$1`
local target=`sed \
-e 's/^.*\s*\(\('"$PROTOCOLS"'\):\/\/\)/\1/' \