From b2ad413844ac4c81d732ab619ba33cc5b4c83e7a Mon Sep 17 00:00:00 2001 From: Seednode Date: Wed, 21 Sep 2022 23:15:45 -0500 Subject: [PATCH] Replaced unquoted variable expansion with explicit splitting, to make shellcheck happy --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 0fad78b..382933d 100755 --- a/build.sh +++ b/build.sh @@ -14,8 +14,8 @@ platforms=( "windows/amd64" ) -for platform in ${platforms[@]}; do - platform_split=(${platform//\// }) +for platform in "${platforms[@]}"; do + IFS=" " read -r -a platform_split <<< "${platform//\// }" GOOS="${platform_split[0]}" GOARCH="${platform_split[1]}" output_name="${package_name}-${GOOS}-${GOARCH}"