From 407cfe4b5ab1732b9d0e66ffe5bbda4665383f03 Mon Sep 17 00:00:00 2001 From: Michael Clifford Date: Wed, 19 Mar 2025 12:46:24 -0400 Subject: [PATCH] fix: correctly set CLI_ARGS using BUILD_PLATFORM env with llama stack build Signed-off-by: Michael Clifford --- llama_stack/distribution/build_container.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama_stack/distribution/build_container.sh b/llama_stack/distribution/build_container.sh index a8346c3b6..e949927d2 100755 --- a/llama_stack/distribution/build_container.sh +++ b/llama_stack/distribution/build_container.sh @@ -235,7 +235,7 @@ image_tag="$image_name:$version_tag" # Detect platform architecture ARCH=$(uname -m) if [ -n "$BUILD_PLATFORM" ]; then - CLI_ARGS+=("--platform $BUILD_PLATFORM") + CLI_ARGS+=("--platform" "$BUILD_PLATFORM") elif [ "$ARCH" = "arm64" ] || [ "$ARCH" = "aarch64" ]; then CLI_ARGS+=("--platform" "linux/arm64") elif [ "$ARCH" = "x86_64" ]; then