configure: Avoid bashism introduced in previous hrev.

This commit is contained in:
Augustin Cavalier 2017-11-23 20:21:38 +01:00
parent 484f64f315
commit e042a53b7d
1 changed files with 3 additions and 2 deletions

5
configure vendored
View File

@ -353,11 +353,12 @@ set_default_value()
get_build_tool_path()
{
local var="HAIKU_$1"
local varval=`get_variable $var`
local cmd=$2
if [ ! -z "${!var}" ]; then
if [ ! -z "$varval" ]; then
# this variable is already set (probably by user) so grab its contents
cmd=${!var}
cmd=$varval
fi
local path=${cmd%% *}