瀏覽代碼

testing sed strip on groups

master
HMSheets 3 年之前
父節點
當前提交
9ed6547b81
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      update-NebulaNodeCert

+ 1
- 1
update-NebulaNodeCert 查看文件

@@ -35,7 +35,7 @@ set -- "${POSITIONAL[@]}" # restore positional parameters

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')
NODEGROUPS=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s --compact-output .[].details.groups) # | sed 's/[]["]//g' | sed 's/./ /g')
NODEGROUPS=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s --compact-output .[].details.groups | sed 's/[]["]//g') #| sed 's/./ /g')

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

Loading…
取消
儲存