From e96546f4466a53b31036dfa510af6971945e9d76 Mon Sep 17 00:00:00 2001 From: hms Date: Wed, 3 Feb 2021 14:40:06 -0800 Subject: [PATCH] sed fix --- update-NebulaNodeCert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-NebulaNodeCert b/update-NebulaNodeCert index 93259ee..d4e674a 100644 --- a/update-NebulaNodeCert +++ b/update-NebulaNodeCert @@ -34,7 +34,7 @@ set -- "${POSITIONAL[@]}" # restore positional parameters #fi 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') +NODEIPS=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s --compact-output .[].details.ips | sed 's/[]["]//g') echo "Node Name: ${NODENAME}" echo "Node IPs: ${NODEIPS}" \ No newline at end of file