Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hypirion committed Dec 30, 2014
2 parents aace7db + 893876c commit 3704236
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/leiningen/deploy.clj
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,15 @@
"to avoid prompts.")
(print "Username: ") (flush)
(let [username (read-line)
password (.readPassword (System/console) "%s"
(into-array ["Password: "]))]
console (System/console)
password (if console
(.readPassword console "%s" (into-array ["Password: "]))
(do
(println "LEIN IS UNABLE TO TURN OFF ECHOING, SO"
"THE PASSWORD IS PRINTED TO THE CONSOLE")
(print "Password: ")
(flush)
(read-line)))]
[id (assoc settings :username username :password password)]))))

;; repo names must not contain path delimiters because they're used by
Expand Down

0 comments on commit 3704236

Please sign in to comment.