You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ja...@apache.org on 2020/02/15 17:23:26 UTC

[lucene-solr] branch master updated: Fixes #124 in bin/solr for 'cdpath' users

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

janhoy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new cbf0eba  Fixes #124 in bin/solr for 'cdpath' users
cbf0eba is described below

commit cbf0eba176eaed7f02e21cf7ada954d1da4f8832
Author: Maxim Antonov <ma...@gmail.com>
AuthorDate: Sat Feb 15 18:10:14 2020 +0100

    Fixes #124 in bin/solr for 'cdpath' users
    
    Signed-off-by: Jan Høydahl <ja...@apache.org>
---
 solr/bin/solr | 1 +
 1 file changed, 1 insertion(+)

diff --git a/solr/bin/solr b/solr/bin/solr
index 2dfef33..11f5081 100755
--- a/solr/bin/solr
+++ b/solr/bin/solr
@@ -73,6 +73,7 @@ while [ -h "$SOLR_SCRIPT" ] ; do
   fi
 done
 
+CDPATH=''  # Prevent "file or directory not found" for 'cdpath' users
 SOLR_TIP=`dirname "$SOLR_SCRIPT"`/..
 SOLR_TIP=`cd "$SOLR_TIP"; pwd`
 DEFAULT_SERVER_DIR="$SOLR_TIP/server"