Replaced unquoted variable expansion with explicit splitting, to make shellcheck happy
This commit is contained in:
parent
d1f1b2e90b
commit
b2ad413844
4
build.sh
4
build.sh
|
@ -14,8 +14,8 @@ platforms=(
|
||||||
"windows/amd64"
|
"windows/amd64"
|
||||||
)
|
)
|
||||||
|
|
||||||
for platform in ${platforms[@]}; do
|
for platform in "${platforms[@]}"; do
|
||||||
platform_split=(${platform//\// })
|
IFS=" " read -r -a platform_split <<< "${platform//\// }"
|
||||||
GOOS="${platform_split[0]}"
|
GOOS="${platform_split[0]}"
|
||||||
GOARCH="${platform_split[1]}"
|
GOARCH="${platform_split[1]}"
|
||||||
output_name="${package_name}-${GOOS}-${GOARCH}"
|
output_name="${package_name}-${GOOS}-${GOARCH}"
|
||||||
|
|
Loading…
Reference in New Issue