mirror of https://github.com/skeeto/enchive.git
Fix UI logic bug.
parent
10f50c4a22
commit
b90e413544
|
@ -603,7 +603,9 @@ command_keygen(struct optparse *options)
|
||||||
fatal("operation would clobber %s", pubfile);
|
fatal("operation would clobber %s", pubfile);
|
||||||
if (secfile_exists)
|
if (secfile_exists)
|
||||||
fatal("operation would clobber %s", secfile);
|
fatal("operation would clobber %s", secfile);
|
||||||
} else if (edit) {
|
}
|
||||||
|
|
||||||
|
if (edit) {
|
||||||
if (!secfile_exists)
|
if (!secfile_exists)
|
||||||
fatal("cannot edit non-existing file %s", secfile);
|
fatal("cannot edit non-existing file %s", secfile);
|
||||||
load_seckey(secfile, secret);
|
load_seckey(secfile, secret);
|
||||||
|
|
Loading…
Reference in New Issue