Adjust to the machine subcomand changes
This commit is contained in:
parent
e23c80628b
commit
f7cbb2288f
@ -38,10 +38,10 @@ function machine(args, options) {
|
||||
args = util.isArray(args) ? args : args.match(/[^\s"]+|"([^"]+)"/g);
|
||||
args = args.map(function (e) { return e[0] === '"' ? e.slice(1, -1) : e; }); // remove the quotes
|
||||
|
||||
console.log('machine ' + args.join(' '));
|
||||
console.log('cloudron machine ' + args.join(' '));
|
||||
|
||||
try {
|
||||
var cp = child_process.spawnSync('machine', args, { stdio: [ options.stdin || 'pipe', options.stdout || 'pipe', 'pipe' ], encoding: options.encoding || 'utf8' });
|
||||
var cp = child_process.spawnSync('cloudron', ['machine'].concat(args), { stdio: [ options.stdin || 'pipe', options.stdout || 'pipe', 'pipe' ], encoding: options.encoding || 'utf8' });
|
||||
return cp;
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
|
Loading…
Reference in New Issue
Block a user