mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-09 04:14:15 +00:00
Merge pull request #251 from resin-io/jviotti/fix/stream-wait-sudo
Refer to the correct waiting stream function
This commit is contained in:
commit
bea5f22732
@ -1,5 +1,5 @@
|
||||
(function() {
|
||||
var Promise, _, capitano, chalk, child_process, os;
|
||||
var Promise, _, capitano, chalk, child_process, os, rindle;
|
||||
|
||||
Promise = require('bluebird');
|
||||
|
||||
@ -11,6 +11,8 @@
|
||||
|
||||
child_process = require('child_process');
|
||||
|
||||
rindle = require('rindle');
|
||||
|
||||
os = require('os');
|
||||
|
||||
chalk = require('chalk');
|
||||
@ -46,7 +48,7 @@
|
||||
spawn = child_process.spawn('sudo', command, {
|
||||
stdio: 'inherit'
|
||||
});
|
||||
return exports.waitStream(spawn);
|
||||
return rindle.wait(spawn);
|
||||
};
|
||||
|
||||
}).call(this);
|
||||
|
@ -3,6 +3,7 @@ capitano = Promise.promisifyAll(require('capitano'))
|
||||
_ = require('lodash')
|
||||
_.str = require('underscore.string')
|
||||
child_process = require('child_process')
|
||||
rindle = require('rindle')
|
||||
os = require('os')
|
||||
chalk = require('chalk')
|
||||
|
||||
@ -40,4 +41,4 @@ exports.sudo = (command) ->
|
||||
spawn = child_process.spawn 'sudo', command,
|
||||
stdio: 'inherit'
|
||||
|
||||
return exports.waitStream(spawn)
|
||||
return rindle.wait(spawn)
|
||||
|
Loading…
x
Reference in New Issue
Block a user