minor fix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-07-14 20:29:07 +03:00
parent 843b64766d
commit 1d71c75a24
2 changed files with 3 additions and 3 deletions

View File

@ -216,9 +216,9 @@ PROTOCOLS=$(printf "\\|%s" "${!HANDLERS[@]}")
PROTOCOLS=${PROTOCOLS:2}
check(){
# NOTE: we are preserving whitespace here...
local comment=`sed \
-e 's/^\(.*\)\('"$PROTOCOLS"'\):\/\/.*$/\1/' \
-e 's/^\s*//;s/\s*$//' \
<<<$1`
local target=`sed \
-e 's/^.*\s*\(\('"$PROTOCOLS"'\):\/\/\)/\1/' \
@ -249,7 +249,7 @@ for site in ${SITES[@]} ; do
IFS=$'\n' \
res=($(check "$site"))
comment=${res[0]/COMMENT=/}
comment="${res[0]/COMMENT=/}"
site=${res[1]/URL=/}
res=${res[2]/RESPONSE=/}

View File

@ -63,7 +63,7 @@ cp -f "$CONFIG" "$CONFIG".bak
./check-status "$line" \
| tee -a $TEXT_STATUS \
| sed \
-e 's/^\(.*\)\(ERROR.*$\)/\1**\2**/' \
-e 's/^\(.*\)\(ERROR.*$\)/\1**\2**/' \
-e 's/^/#/'
done
echo "#_(checked on: ${DATE})_"