From 70e4eeca5d3c915b9e831939c575ad0572c23d27 Mon Sep 17 00:00:00 2001 From: hms Date: Wed, 3 Feb 2021 14:36:09 -0800 Subject: [PATCH] added sed [, ], and " stripping --- update-NebulaNodeCert | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update-NebulaNodeCert b/update-NebulaNodeCert index 9df3fde..134c547 100644 --- a/update-NebulaNodeCert +++ b/update-NebulaNodeCert @@ -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}" \ No newline at end of file