[ANY] Case ignoring for commands in ServerWrapper (#657)

This commit is contained in:
microwin7 2023-06-30 16:22:22 +03:00 committed by GitHub
parent bd83e8a4c5
commit 04dd7d655c
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(); GetAvailabilityAuthRequest.registerProviders();
OptionalAction.registerProviders(); OptionalAction.registerProviders();
OptionalTrigger.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"); LogHelper.debug("Read ServerWrapperConfig.json");
loadConfig(); loadConfig();
ServerWrapperSetup setup = new ServerWrapperSetup(); ServerWrapperSetup setup = new ServerWrapperSetup();
setup.run(); setup.run();
System.exit(0); 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"); LogHelper.debug("Read ServerWrapperConfig.json");
loadConfig(); loadConfig();
InstallAuthlib command = new InstallAuthlib(); InstallAuthlib command = new InstallAuthlib();