Replaced unquoted variable expansion with explicit splitting, to make shellcheck happy

This commit is contained in:
Seednode 2022-09-21 23:15:45 -05:00
parent d1f1b2e90b
commit b2ad413844
1 changed files with 2 additions and 2 deletions

View File

@ -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}"