[ANY] Case ignoring for commands in ServerWrapper

This commit is contained in:
microwin7 2023-06-29 18:41:56 +03:00 committed by GitHub
parent 0c23b59749
commit dfe6e0ac45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,14 +98,14 @@ public void run(String... args) throws Throwable {
GetAvailabilityAuthRequest.registerProviders();
OptionalAction.registerProviders();
OptionalTrigger.registerProviders();
if (args.length > 0 && args[0].equals("setup") && !disableSetup) {
if (args.length > 0 && args[0].equalsIgnoreCase("setup") && !disableSetup) {
LogHelper.debug("Read ServerWrapperConfig.json");
loadConfig();
ServerWrapperSetup setup = new ServerWrapperSetup();
setup.run();
System.exit(0);
}
if (args.length > 1 && args[0].equals("installAuthlib") && !disableSetup) {
if (args.length > 1 && args[0].equalsIgnoreCase("installAuthlib") && !disableSetup) {
LogHelper.debug("Read ServerWrapperConfig.json");
loadConfig();
InstallAuthlib command = new InstallAuthlib();