Skip to content

Apache Lucene open-source search software

Fixes #124 in bin/solr for 'cdpath' users

Maxim Antonovcbf0eba176ea
diff --git a/solr/bin/solr b/solr/bin/solr
index 2dfef33e272..11f50815889 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"