mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-26 05:49:54 +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;
|
const up = notifier.update;
|
||||||
if (up) {
|
if (
|
||||||
|
up &&
|
||||||
|
(require('semver') as typeof import('semver')).lt(up.current, up.latest)
|
||||||
|
) {
|
||||||
notifier.notify({
|
notifier.notify({
|
||||||
defer: false,
|
defer: false,
|
||||||
message: `Update available ${up.current} → ${up.latest}\n
|
message: `Update available ${up.current} → ${up.latest}\n
|
||||||
|
Loading…
x
Reference in New Issue
Block a user