Skip to content

Commit

Permalink
Fix CLI opcert output reading for edge case (when pool hasnt minted a…
Browse files Browse the repository at this point in the history
… block)
  • Loading branch information
rdlrt committed Jan 11, 2024
1 parent ea5b048 commit 9de48b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/cnode-helper-scripts/gLiveView.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ setTheme() {
# Do NOT modify code below #
######################################

GLV_VERSION=v1.28.4
GLV_VERSION=v1.28.5

PARENT="$(dirname $0)"

Expand Down Expand Up @@ -524,7 +524,7 @@ getOpCert () {
op_cert_tsv=$(jq -r '[
.qKesNodeStateOperationalCertificateNumber //"?",
.qKesOnDiskOperationalCertificateNumber //"?"
] | @tsv' <<<"$(${CCLI} query kes-period-info ${NETWORK_IDENTIFIER} --op-cert-file "${opcert_file}" | tail -n +3)")
] | @tsv' <<<"$(${CCLI} query kes-period-info ${NETWORK_IDENTIFIER} --op-cert-file "${opcert_file}" | grep "^[{ }]")")
read -ra op_cert_arr <<< ${op_cert_tsv}
isNumber ${op_cert_arr[0]} && op_cert_node=${op_cert_arr[0]}
isNumber ${op_cert_arr[1]} && op_cert_disk=${op_cert_arr[1]}
Expand Down

0 comments on commit 9de48b6

Please sign in to comment.