Skip to content

Commit

Permalink
Fix cncli version check
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlrt committed Jan 11, 2024
1 parent 47fc431 commit 1fef4eb
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.3
GLV_VERSION=v1.28.4

PARENT="$(dirname $0)"

Expand Down Expand Up @@ -124,7 +124,7 @@ fi
if [[ ${UPDATE_CHECK} = Y && ${SKIP_UPDATE} != Y ]]; then

if command -v cncli >/dev/null && command -v systemctl >/dev/null && systemctl is-active --quiet ${CNODE_VNAME}-cncli-sync.service 2>/dev/null; then
vcur=$(cncli -V | sed 's/cncli /v/g')
vcur=$(cncli -V | awk '{print $2}')
vrem=$(curl -s https://api.github.com/repos/${G_ACCOUNT}/cncli/releases/latest | jq -r .tag_name)
[[ ${vcur} != ${vrem} ]] && printf "${FG_MAGENTA}CNCLI current version (${vcur}) different from repo (${vrem}), consider upgrading!.${NC}" && waitToProceed
fi
Expand Down

0 comments on commit 1fef4eb

Please sign in to comment.