Adjust to the machine subcomand changes

This commit is contained in:
Johannes Zellner 2016-06-29 14:02:47 +02:00
parent e23c80628b
commit f7cbb2288f

View File

@ -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);