mirror of
https://github.com/i2p/i2p.i2p.git
synced 2024-12-06 19:27:00 +01:00
PrivateKeyFile: Don't rewrite file in main() if no options
This commit is contained in:
@@ -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