Skip to content

Commit

Permalink
Client: Handle ambiguity with create --password --keyfile
Browse files Browse the repository at this point in the history
See #20
  • Loading branch information
mqudsi committed Feb 27, 2024
1 parent 8d6cf88 commit b233226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ void printVersion()
}

// We need to differentiate between null (not set) and empty (empty)
if (password == string.Empty && string.IsNullOrEmpty(keyfile))
if (password == string.Empty && (string.IsNullOrEmpty(keyfile) || !File.Exists(keyfile)))
{
if (command == "create")
{
Expand Down

0 comments on commit b233226

Please sign in to comment.