1 diff -Naur a/bin/elasticsearch-env b/bin/elasticsearch-env
2 --- a/bin/elasticsearch-env 2017-12-12 13:31:51.000000000 +0100
3 +++ b/bin/elasticsearch-env 2017-12-18 19:51:12.282809695 +0100
8 -# determine Elasticsearch home; to do this, we strip from the path until we find
9 -# bin, and then strip bin (there is an assumption here that there is no nested
10 -# directory under bin also named bin)
11 -ES_HOME=`dirname "$SCRIPT"`
13 -# now make ES_HOME absolute
14 -ES_HOME=`cd "$ES_HOME"; pwd`
16 -while [ "`basename "$ES_HOME"`" != "bin" ]; do
17 - ES_HOME=`dirname "$ES_HOME"`
19 -ES_HOME=`dirname "$ES_HOME"`
20 +if [ -z "$ES_HOME" ]; then
21 + echo "You must set the ES_HOME var" >&2
25 # now set the classpath
26 ES_CLASSPATH="$ES_HOME/lib/*"