lib/awskeyring_command.rb in awskeyring-0.8.1 vs lib/awskeyring_command.rb in awskeyring-0.9.0
- old
+ new
@@ -103,12 +103,12 @@
env_vars = env_vars(cred)
begin
pid = Process.spawn(env_vars, command.join(' '))
Process.wait pid
$CHILD_STATUS
- rescue Errno::ENOENT => err
- warn err.to_s
+ rescue Errno::ENOENT => e
+ warn e.to_s
exit 1
end
end
desc 'add ACCOUNT', I18n.t('add.desc')
@@ -455,10 +455,10 @@
end
value
end
def ask_missing(existing:, message:, secure: false, optional: false)
- existing || ask(message: message, secure: secure, optional: optional)
+ existing || ask(message: message, secure: secure, optional: optional).strip
end
def ask(message:, secure: false, optional: false)
if secure
Awskeyring::Input.read_secret(message.rjust(20) + ': ')