mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-20 17:33:18 +00:00
Fix bug in device init
This commit is contained in:
parent
6e6a01c33c
commit
5efa7309be
@ -98,7 +98,7 @@
|
||||
return callback();
|
||||
}
|
||||
console.info('Resin CLI is outdated.\n\nIn order to avoid device compatibility issues, this command\nrequires that you have the Resin CLI updated.\n\nUpdating now...');
|
||||
return updateActions.update.action(params, options, _.unary(done));
|
||||
return updateActions.update.action(params, options, _.unary(callback));
|
||||
}, function(callback) {
|
||||
if (params.device != null) {
|
||||
return callback(null, params.device);
|
||||
|
@ -136,7 +136,7 @@ exports.install =
|
||||
Updating now...
|
||||
'''
|
||||
|
||||
updateActions.update.action(params, options, _.unary(done))
|
||||
updateActions.update.action(params, options, _.unary(callback))
|
||||
|
||||
(callback) ->
|
||||
return callback(null, params.device) if params.device?
|
||||
|
Loading…
x
Reference in New Issue
Block a user