diff --git a/solr/core/src/java/org/apache/solr/util/SolrCLI.java b/solr/core/src/java/org/apache/solr/util/SolrCLI.java index b0d31863d5f..0010d1e4df4 100644 --- a/solr/core/src/java/org/apache/solr/util/SolrCLI.java +++ b/solr/core/src/java/org/apache/solr/util/SolrCLI.java @@ -3268,7 +3268,7 @@ public class SolrCLI { if (cli.hasOption("s")) { if (assertSolrRunning(cli.getOptionValue("s")) > 0) return 1; } - if (cli.hasOption("s")) { + if (cli.hasOption("S")) { if (assertSolrNotRunning(cli.getOptionValue("S")) > 0) return 1; } return 0;