Skip to content

Commit 4b96792

Browse files
committed
fix(build-current): use more common way to get ARCH OPT
1 parent 5730fe6 commit 4b96792

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build/build-current.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ rm -rf ../output/
55

66
GOARCH=$(go env GOARCH)
77
ARCH_OPT_NAME=$(echo "GO$GOARCH" | tr 'a-z' 'A-Z')
8-
if [ -n "${!ARCH_OPT_NAME}" ]; then
9-
ARCH_OPT=",${!ARCH_OPT_NAME}"
8+
ARCH_OPT_VALUE=$(go env "$ARCH_OPT_NAME")
9+
if [ -n "$ARCH_OPT_VALUE" ]; then
10+
ARCH_OPT=",$ARCH_OPT_VALUE"
1011
fi
1112

1213
bash ./build.sh "$(go env GOOS) ${GOARCH}${ARCH_OPT}"

0 commit comments

Comments
 (0)