From de83a06db896a3304ebe690618f42fecb47aca8a Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Mon, 26 Oct 2015 08:48:49 -0400 Subject: [PATCH] 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 --- build/utils/helpers.js | 1 + lib/utils/helpers.coffee | 1 + 2 files changed, 2 insertions(+) diff --git a/build/utils/helpers.js b/build/utils/helpers.js index 88f83701..3a9be677 100644 --- a/build/utils/helpers.js +++ b/build/utils/helpers.js @@ -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' diff --git a/lib/utils/helpers.coffee b/lib/utils/helpers.coffee index 1b4a1c63..e26a68f9 100644 --- a/lib/utils/helpers.coffee +++ b/lib/utils/helpers.coffee @@ -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,