Fix bashish in bin/gerrit.sh
The Gerrit init script uses a bashism to detect the location of jstack. Instead of calculating it by trimming $JAVA, use $JAVA_HOME to obtain the location of 'jstack'. Also honor for the environment variable $JSTACK. Change-Id: I94f0c672492becd6cdcc07769a7c70b290d222d4
This commit is contained in:
parent
e656625b2a
commit
5b4c65e0ab
@ -265,7 +265,9 @@ if test -z "$JAVA" ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
JSTACK=${JAVA:0:${#JAVA}-5}/jstack
|
||||
if test -z "$JSTACK"; then
|
||||
JSTACK="$JAVA_HOME/bin/jstack"
|
||||
fi
|
||||
|
||||
#####################################################
|
||||
# Add Gerrit properties to Java VM options.
|
||||
|
Loading…
Reference in New Issue
Block a user