IMPALA-14532: Fix SKIP_TOOLCHAIN_BOOTSTRAP

Fixes 'NATIVE_TOOLCHAIN_HOME: unbound variable' error when setting
'SKIP_TOOLCHAIN_BOOTSTRAP=true'.

Change-Id: I6562d49114590d89d2f43a4c23bba4a65e8abd74
Reviewed-on: http://gerrit.cloudera.org:8080/23640
Reviewed-by: Riza Suminto <riza.suminto@cloudera.com>
Tested-by: Michael Smith <michael.smith@cloudera.com>
This commit is contained in:
Michael Smith
2025-11-05 13:43:14 -08:00
parent 0b9d6a7059
commit 2688e30ae5

View File

@@ -424,7 +424,7 @@ bootstrap_dependencies() {
# Populate necessary thirdparty components unless it's set to be skipped.
if [[ "${SKIP_TOOLCHAIN_BOOTSTRAP}" = true ]]; then
if ! [ -z "${NATIVE_TOOLCHAIN_HOME}" ]; then
if ! [ -z "${NATIVE_TOOLCHAIN_HOME-}" ]; then
if ! [ -d "${NATIVE_TOOLCHAIN_HOME}" ]; then
mkdir -p "${NATIVE_TOOLCHAIN_HOME}"
pushd "${NATIVE_TOOLCHAIN_HOME}"