Sfoglia il codice sorgente

added sed [, ], and " stripping

master
HMSheets 3 anni fa
parent
commit
70e4eeca5d
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      update-NebulaNodeCert

+ 2
- 2
update-NebulaNodeCert Vedi File

@@ -33,8 +33,8 @@ set -- "${POSITIONAL[@]}" # restore positional parameters
# echo "IP Address = ${IPADDRESS}"
#fi

NODENAME=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s .[].details.name)
NODEIPS=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s --compact-output .[].details.ips)
NODENAME=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s .[].details.name | sed 's/["]//g')
NODEIPS=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s --compact-output .[].details.ips | sed 's/[\]\["]//g')

echo "Node Name: ${NODENAME}"
echo "Node IPs: ${NODEIPS}"

Caricamento…
Annulla
Salva