mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-10 04:39:54 +00:00
Clarify the need of computer password during sudo
Since we only prompt "Password:", it might be confusing for some users that think they have to enter their Resin.io password instead. Fixes: https://github.com/resin-io/resin-cli/issues/239
This commit is contained in:
parent
9260c8dce2
commit
de83a06db8
@ -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