diff --git a/distribution/src/main/resources/bin/elasticsearch-env b/distribution/src/main/resources/bin/elasticsearch-env index 83380400173d0..a5cf04da77d2c 100644 --- a/distribution/src/main/resources/bin/elasticsearch-env +++ b/distribution/src/main/resources/bin/elasticsearch-env @@ -80,7 +80,7 @@ if [ -z "$ES_TMPDIR" ]; then mktemp_coreutils=$? set -e if [ $mktemp_coreutils -eq 0 ]; then - ES_TMPDIR=`mktemp -d --tmpdir "elasticearch.XXXXXXXX"` + ES_TMPDIR=`mktemp -d --tmpdir "elasticsearch.XXXXXXXX"` else ES_TMPDIR=`mktemp -d -t elasticsearch` fi