mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-22 17:32:28 +00:00
PrivateKeyFile: Don't rewrite file in main() if no options
This commit is contained in:
1 parent
fd47cb88de
commit
5f2b620819
1 file changed
+5
-3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user