PrivateKeyFile: Don't rewrite file in main() if no options

This commit is contained in:
zzz
2014-11-24 14:26:53 +00:00
parent fd47cb88de
commit 5f2b620819

View File

@ -169,9 +169,11 @@ public class PrivateKeyFile {
usage();
return;
}
System.out.println(pkf);
pkf.write();
verifySignature(pkf.getDestination());
if (mode != 0) {
System.out.println(pkf);
pkf.write();
verifySignature(pkf.getDestination());
}
} catch (Exception e) {
e.printStackTrace();
System.exit(1);