Skip to content

Commit d4db435

Browse files
committed
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.
1 parent 653fd94 commit d4db435

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_library/build_image_util.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ zip_update_tools() {
9595

9696
info "Generating update tools zip"
9797
# Make sure some vars this script needs are exported
98-
local -x REPO_MANIFESTS_DIR SCRIPTS_DIR
98+
local -x REPO_MANIFESTS_DIR=${REPO_MANIFESTS_DIR} SCRIPTS_DIR=${SCRIPTS_DIR}
9999
"${BUILD_LIBRARY_DIR}/generate_au_zip.py" \
100100
--arch "$(get_sdk_arch)" --output-dir "${BUILD_DIR}" --zip-name "${update_zip}"
101101
}

0 commit comments

Comments
 (0)