diff --git a/installer/resources/i2prouter b/installer/resources/i2prouter index cbfdf7052c1dcda687f8b1582183cd37a8f8754a..793555a01e26cbc7140e640f392f53605937e61d 100644 --- a/installer/resources/i2prouter +++ b/installer/resources/i2prouter @@ -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