Skip to content

Commit

Permalink
Remove bash specific calls
Browse files Browse the repository at this point in the history
Make sure that every call in a shell script is supported by /bin/sh and not a bashism, like $()

Closes elastic#4314
  • Loading branch information
spinscale committed Dec 3, 2013
1 parent d657455 commit 159572c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/elasticsearch
Expand Up @@ -89,7 +89,7 @@ fi
if [ -x "$JAVA_HOME/bin/java" ]; then
JAVA="$JAVA_HOME/bin/java"
else
JAVA=$(which java)
JAVA=`which java`
fi

if [ ! -x "$JAVA" ]; then
Expand Down
2 changes: 1 addition & 1 deletion src/rpm/init.d/elasticsearch
Expand Up @@ -53,7 +53,7 @@ checkJava() {
if [ -x "$JAVA_HOME/bin/java" ]; then
JAVA="$JAVA_HOME/bin/java"
else
JAVA=$(which java)
JAVA=`which java`
fi

if [ ! -x "$JAVA" ]; then
Expand Down

0 comments on commit 159572c

Please sign in to comment.