mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-09 04:14:15 +00:00
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:
commit
3192f9d2ef
@ -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'
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user