Skip to content

Commit

Permalink
Update src/cmd/cmd.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Claudio Cambra <[email protected]>
Signed-off-by: internet-memme <[email protected]>
  • Loading branch information
2 people authored and mgallien committed Dec 5, 2023
1 parent 78fd325 commit 0b4aeb5
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/cmd/cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,17 +392,14 @@ int main(int argc, char **argv)
if (password.isEmpty()) {
password = queryPassword(user);
}
}else{
//else use ENV?
if(user.isEmpty()){
user = std::getenv("NC_USER");
}
if(password.isEmpty()){
password = std::getenv("NC_PASSWORD");
}

} else {
if (user.isEmpty()) {
user = std::getenv("NC_USER");
}
if (password.isEmpty()) {
password = std::getenv("NC_PASSWORD");
}
}


// Find the folder and the original owncloud url

Expand Down

0 comments on commit 0b4aeb5

Please sign in to comment.