Remove bash specific calls
Make sure that every call in a shell script is supported by /bin/sh and not a bashism, like $() Closes #4314
This commit is contained in:
parent
7690b40ec6
commit
7c96627d76
|
@ -89,7 +89,7 @@ fi
|
||||||
if [ -x "$JAVA_HOME/bin/java" ]; then
|
if [ -x "$JAVA_HOME/bin/java" ]; then
|
||||||
JAVA="$JAVA_HOME/bin/java"
|
JAVA="$JAVA_HOME/bin/java"
|
||||||
else
|
else
|
||||||
JAVA=$(which java)
|
JAVA=`which java`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -x "$JAVA" ]; then
|
if [ ! -x "$JAVA" ]; then
|
||||||
|
|
|
@ -53,7 +53,7 @@ checkJava() {
|
||||||
if [ -x "$JAVA_HOME/bin/java" ]; then
|
if [ -x "$JAVA_HOME/bin/java" ]; then
|
||||||
JAVA="$JAVA_HOME/bin/java"
|
JAVA="$JAVA_HOME/bin/java"
|
||||||
else
|
else
|
||||||
JAVA=$(which java)
|
JAVA=`which java`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -x "$JAVA" ]; then
|
if [ ! -x "$JAVA" ]; then
|
||||||
|
|
Loading…
Reference in New Issue