diff --git a/src/cli/one_helper.rb b/src/cli/one_helper.rb index cc3eaa22d2..5935c3f1e7 100644 --- a/src/cli/one_helper.rb +++ b/src/cli/one_helper.rb @@ -411,8 +411,8 @@ EOT def self.get_password print "Password: " system("stty", "-echo") - @@password=gets.chop begin + @@password = STDIN.gets.chop return @@password ensure system("stty", "echo")