mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-19 05:37:51 +00:00
12 lines
268 B
CoffeeScript
12 lines
268 B
CoffeeScript
|
updateNotifier = require('update-notifier')
|
||
|
packageJSON = require('../../package.json')
|
||
|
|
||
|
notifier = updateNotifier(pkg: packageJSON)
|
||
|
|
||
|
exports.hasAvailableUpdate = ->
|
||
|
return notifier?
|
||
|
|
||
|
exports.notify = ->
|
||
|
return if not exports.hasAvailableUpdate()
|
||
|
notifier.notify()
|