From d4db435dd960b7586bc8472e5fc99bd9982e8901 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Wed, 4 Dec 2024 17:16:04 +0100 Subject: [PATCH] build_library/build_image_util: Fix local exporting Apparently `local -x FOO` does not locally export an already existing variable, but rather does some whole weird lot of nothing - it shadows an existing variable with a new unset one, but it won't export it until it gets assigned. --- build_library/build_image_util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_library/build_image_util.sh b/build_library/build_image_util.sh index 0d94c49bcb..2549e4667d 100755 --- a/build_library/build_image_util.sh +++ b/build_library/build_image_util.sh @@ -95,7 +95,7 @@ zip_update_tools() { info "Generating update tools zip" # Make sure some vars this script needs are exported - local -x REPO_MANIFESTS_DIR SCRIPTS_DIR + local -x REPO_MANIFESTS_DIR=${REPO_MANIFESTS_DIR} SCRIPTS_DIR=${SCRIPTS_DIR} "${BUILD_LIBRARY_DIR}/generate_au_zip.py" \ --arch "$(get_sdk_arch)" --output-dir "${BUILD_DIR}" --zip-name "${update_zip}" }