Skip to content

Commit 6fb78ae

Browse files
authored
Parse long format for auth command (#2760)
1 parent 7405bb1 commit 6fb78ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

solr/bin/solr.cmd

+4-4
Original file line numberDiff line numberDiff line change
@@ -1519,11 +1519,11 @@ for %%a in (%*) do (
15191519
if "!arg:~0,1!" equ "-" set "option=!arg!"
15201520
) else (
15211521
set "option!option!=%%a"
1522-
if "!option!" equ "-d" set "SOLR_SERVER_DIR=%%a"
1523-
if "!option!" equ "--server-dir" set "SOLR_SERVER_DIR=%%a"
15241522
if "!option!" equ "-s" set "SOLR_HOME=%%a"
1525-
if "!option!" equ "--solr-home" set "SOLR_HOME=%%a"
1526-
if not "!option!" equ "-s" if not "!option!" equ "-d" (
1523+
if "!option!" equ "--solr-home" set "SOLR_HOME=%%a"
1524+
if "!option!" equ "-d" set "SOLR_SERVER_DIR=%%a"
1525+
if "!option!" equ "--server-dir" set "SOLR_SERVER_DIR=%%a"
1526+
if not "!option!" equ "-s" if not "!option!" equ "--solr-home" if not "!option!" equ "-d" if not "!option!" equ "--server-dir" (
15271527
set "AUTH_PARAMS=!AUTH_PARAMS! !option! %%a"
15281528
)
15291529
set "option="

0 commit comments

Comments
 (0)