Skip to content

Commit

Permalink
- pass bug in shell mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kterry committed Mar 27, 2015
1 parent 02fe54d commit f5e21ce
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ public static void main(final String[] args) throws Exception {

// get password
if (password == null) {
if(System.console()!=null ){
password = System.console().readPassword("Password: ").toString();
if(System.console()!=null ){
//in shell
password = new String(System.console().readPassword("Password: "));
}else{
BufferedReader br = new BufferedReader(new InputStreamReader(
System.in));
Expand Down

0 comments on commit f5e21ce

Please sign in to comment.