mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-29 19:20:10 +00:00
minor fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
843b64766d
commit
1d71c75a24
@ -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=/}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user