Fix bug with adding kdbx-extension to output filename.

This commit is contained in:
Markus Birth 2021-08-18 18:35:27 +02:00
parent 66a1ee3e27
commit c8384edebe
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A

View File

@ -20,7 +20,7 @@ if not args.outfile:
args.outfile = "{}.kdbx".format(fileparts[0])
outparts = splitext(args.outfile)
if not outparts[1] == "kdbx":
if outparts[1] != ".kdbx":
args.outfile += ".kdbx"
kp = create_database(args.outfile, password="test")