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