Merge pull request #252 from resin-io/jviotti/fix/239/sudo-explain

Clarify the need of computer password during sudo
This commit is contained in:
Juan Cruz Viotti 2015-10-26 09:42:26 -04:00
commit 3192f9d2ef
2 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,7 @@
if (os.platform() === 'win32') {
return capitano.runAsync(command.join(' '));
}
console.log('Type your computer password to continue');
command = _.union(_.take(process.argv, 2), command);
spawn = child_process.spawn('sudo', command, {
stdio: 'inherit'

View File

@ -36,6 +36,7 @@ exports.sudo = (command) ->
if os.platform() is 'win32'
return capitano.runAsync(command.join(' '))
console.log('Type your computer password to continue')
command = _.union(_.take(process.argv, 2), command)
spawn = child_process.spawn 'sudo', command,