From ababeaed3866b024a06a9edfae73849a5f45666b Mon Sep 17 00:00:00 2001 From: Alexander Reelsen Date: Tue, 24 Dec 2013 13:35:59 +0100 Subject: [PATCH] Removed bashism in bin/elasticsearch Using == in an if-statement works in bash but not in dash (used in ubuntu) Replacing == with = results in strictl POSIX compliance. --- bin/elasticsearch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/elasticsearch b/bin/elasticsearch index 794cd1b0895..5b4a2c6513d 100755 --- a/bin/elasticsearch +++ b/bin/elasticsearch @@ -136,7 +136,7 @@ launch_service() fi # The es-foreground option will tell ElasticSearch not to close stdout/stderr, but it's up to us not to daemonize. - if [ "x$daemonized" == "x" ]; then + if [ "x$daemonized" = "x" ]; then es_parms="$es_parms -Des.foreground=yes" exec "$JAVA" $JAVA_OPTS $ES_JAVA_OPTS $es_parms -Des.path.home="$ES_HOME" -cp "$ES_CLASSPATH" $props \ org.elasticsearch.bootstrap.ElasticSearch