You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ep...@apache.org on 2024/10/15 11:06:06 UTC

(solr) branch main updated: Parse long format for auth command (#2760)

This is an automated email from the ASF dual-hosted git repository.

epugh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/main by this push:
     new 6fb78ae1c25 Parse long format for auth command (#2760)
6fb78ae1c25 is described below

commit 6fb78ae1c25f9ae618154bbac06bd737fd7a3fbd
Author: Eric Pugh <ep...@opensourceconnections.com>
AuthorDate: Tue Oct 15 07:05:59 2024 -0400

    Parse long format for auth command (#2760)
---
 solr/bin/solr.cmd | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/solr/bin/solr.cmd b/solr/bin/solr.cmd
index f4f3d927fc0..846433022c5 100755
--- a/solr/bin/solr.cmd
+++ b/solr/bin/solr.cmd
@@ -1519,11 +1519,11 @@ for %%a in (%*) do (
       if "!arg:~0,1!" equ "-" set "option=!arg!"
    ) else (
       set "option!option!=%%a"
-      if "!option!" equ "-d" set "SOLR_SERVER_DIR=%%a"
-      if "!option!" equ "--server-dir" set "SOLR_SERVER_DIR=%%a"
       if "!option!" equ "-s" set "SOLR_HOME=%%a"
-      if "!option!" equ "--solr-home" set "SOLR_HOME=%%a"      
-      if not "!option!" equ "-s" if not "!option!" equ "-d" (
+      if "!option!" equ "--solr-home" set "SOLR_HOME=%%a"        
+      if "!option!" equ "-d" set "SOLR_SERVER_DIR=%%a"
+      if "!option!" equ "--server-dir" set "SOLR_SERVER_DIR=%%a"    
+      if not "!option!" equ "-s" if not "!option!" equ "--solr-home" if not "!option!" equ "-d" if not "!option!" equ "--server-dir" (
         set "AUTH_PARAMS=!AUTH_PARAMS! !option! %%a"
       )
       set "option="