diff --git a/src/leiningen/deploy.clj b/src/leiningen/deploy.clj index 758680dae..63b423471 100644 --- a/src/leiningen/deploy.clj +++ b/src/leiningen/deploy.clj @@ -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