Skip to content

Commit

Permalink
show newline after inputted password
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Feb 22, 2015
1 parent 83ce370 commit 91a2e06
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions command/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ def password
prompt = bold("Enter your password: ")
if STDIN.respond_to?(:noecho)
print prompt
STDIN.noecho(&:gets).strip
pass = STDIN.noecho(&:gets).strip
else
`read -s -p "#{prompt}" password; echo $password`.strip
pass = `read -s -p "#{prompt}" password; echo $password`.strip
end
puts ""
pass
end

def parse_nslog_message(message)
Expand Down

0 comments on commit 91a2e06

Please sign in to comment.