Better command to determine JAVABINARY

Switch to one awk command instead of using grep and cut.
This commit is contained in:
kytv
2011-12-10 20:11:21 +00:00
parent fc7d8f72b0
commit 6fa01a3b2d

View File

@ -137,7 +137,7 @@ if [ ! -e $WRAPPER_CONF ]; then
fi
# Workaround for Gentoo
JAVABINARY=`grep ^wrapper\.java\.command $WRAPPER_CONF | cut -f2 -d=`
JAVABINARY=$(awk -F'=' '/^ *wrapper\.java\.command/{print $2}' $WRAPPER_CONF)
if [ -e /etc/gentoo-release ]; then
if [ $JAVABINARY = java ]; then