Skip to content

Commit

Permalink
pcorlessGH-46 Sets username to user.name by default
Browse files Browse the repository at this point in the history
  • Loading branch information
gtache committed May 29, 2020
1 parent e833d93 commit 065e40d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ public String getUsername() {

public void setUsername(final String username) {
this.username = username;
sardine.setCredentials(username, password);
}

public String getPassword() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static void main(String[] argv) {
String contentFile = "";
String password = null;
String contentDav = "";
String user = "";
String user = System.getProperty("user.name");
// parse command line arguments
for (int i = 0; i < argv.length; i++) {
if (i == argv.length - 1) { //each argument requires another
Expand Down

0 comments on commit 065e40d

Please sign in to comment.