Skip to content

Commit 9cfc6f6

Browse files
authored
Merge pull request #94 from Abirdcfly/main
Simplify unset-or-null expansions after shfmt update to 3.6.0
2 parents b79a958 + 8b18173 commit 9cfc6f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hack/lib/golang.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -o pipefail
77
function go::build_binary() {
88
local -r targets=($@)
99

10-
IFS="," read -ra platforms <<<"${BUILD_PLATFORMS:-}"
10+
IFS="," read -ra platforms <<<"${BUILD_PLATFORMS-}"
1111
if [[ ${#platforms[@]} -eq 0 ]]; then
1212
read -ra platforms <<<$(go::host_platform)
1313
fi
@@ -32,7 +32,7 @@ function go::build_binary_for_platform() {
3232

3333
set -x
3434
GO111MODULE=on CGO_ENABLED=0 GOOS=${os} GOARCH=${arch} go build -v \
35-
-ldflags "${LDFLAGS:-}" \
35+
-ldflags "${LDFLAGS-}" \
3636
-o "_output/bin/${platform}/$target" \
3737
"cmd/$target/main.go"
3838
set +x

0 commit comments

Comments
 (0)