mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-23 23:42:24 +00:00
17 lines
332 B
JavaScript
17 lines
332 B
JavaScript
#!/usr/bin/env node
|
|
|
|
var os = require('../build/actions/os');
|
|
var errors = require('../build/errors');
|
|
|
|
// TODO: Do some error handling when image or device are incorrect
|
|
|
|
os.install.action({
|
|
image: process.argv[2],
|
|
device: process.argv[3]
|
|
}, {
|
|
yes: true,
|
|
fromScript: true
|
|
}, function(error) {
|
|
return errors.handle(error);
|
|
});
|