Skip to content

Commit

Permalink
Fix incorrect major version check in updater. (netdata#16803)
Browse files Browse the repository at this point in the history
* Fix incorrect major version check in updater.

* Fix additional instance of the issue.
  • Loading branch information
Ferroin authored Jan 18, 2024
1 parent dedc5be commit 3558d50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packaging/installer/netdata-updater.sh
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ update_available() {
update_safe=0

for v in ${NETDATA_ACCEPT_MAJOR_VERSIONS}; do
if [ "${current_major}" -eq "${v}" ]; then
if [ "${latest_major}" -eq "${v}" ]; then
update_safe=1
break
fi
Expand Down Expand Up @@ -910,7 +910,7 @@ update_binpkg() {
update_safe=0

for v in ${NETDATA_ACCEPT_MAJOR_VERSIONS}; do
if [ "${current_major}" -eq "${v}" ]; then
if [ "${latest_major}" -eq "${v}" ]; then
update_safe=1
break
fi
Expand Down

0 comments on commit 3558d50

Please sign in to comment.