mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-25 21:39:47 +00:00
Only notify of an update if the new version is actually newer
Change-type: patch
This commit is contained in:
parent
7311cfa755
commit
4ae91ef846
@ -40,7 +40,10 @@ export function notify() {
|
||||
}
|
||||
}
|
||||
const up = notifier.update;
|
||||
if (up) {
|
||||
if (
|
||||
up &&
|
||||
(require('semver') as typeof import('semver')).lt(up.current, up.latest)
|
||||
) {
|
||||
notifier.notify({
|
||||
defer: false,
|
||||
message: `Update available ${up.current} → ${up.latest}\n
|
||||
|
Loading…
x
Reference in New Issue
Block a user