BootSigner: support setting name with no cert/key pair supplied

This commit is contained in:
osm0sis 2019-07-04 16:06:45 -03:00 committed by John Wu
parent 51ff724691
commit f53fe67372

View File

@ -24,7 +24,9 @@ public class BootSigner {
cert = new FileInputStream(args[1]);
key = new FileInputStream(args[2]);
}
if (args.length >= 4) {
if (args.length == 2) {
name = args[1];
} else if (args.length >= 4) {
name = args[3];
}