From 82f24d7a1a4e30fa87651b2213d4af535cc5ef92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Wed, 4 Jun 2025 22:12:19 +0200 Subject: [PATCH] Fix bash array expansion Follow-up to https://github.com/dotnet/runtime/pull/116315#issuecomment-2941125952 --- eng/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/build.sh b/eng/build.sh index 6abe26644380ba..3919b9624d784e 100755 --- a/eng/build.sh +++ b/eng/build.sh @@ -153,7 +153,7 @@ showSubsetHelp() "$scriptroot/common/build.sh" "-restore" "-build" "/p:Subset=help" "/clp:nosummary /tl:false" } -arguments=("") +arguments=() cmakeargs='' extraargs=() crossBuild=0 @@ -549,7 +549,7 @@ while [[ $# > 0 ]]; do done if [ ${#actInt[@]} -eq 0 ]; then - arguments=("-restore" "-build" "${arguments[@]}") + arguments=("-restore" "-build" ${arguments[@]+"${arguments[@]}"}) fi if [[ "$os" == "browser" ]]; then