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"
|
||||
)
|
||||
|
||||
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}"
|
||||
|
|
Loading…
Reference in New Issue