forked from I2P_Developers/i2p.i2p
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