We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5730fe6 commit 4b96792Copy full SHA for 4b96792
build/build-current.sh
@@ -5,8 +5,9 @@ rm -rf ../output/
5
6
GOARCH=$(go env GOARCH)
7
ARCH_OPT_NAME=$(echo "GO$GOARCH" | tr 'a-z' 'A-Z')
8
-if [ -n "${!ARCH_OPT_NAME}" ]; then
9
- ARCH_OPT=",${!ARCH_OPT_NAME}"
+ARCH_OPT_VALUE=$(go env "$ARCH_OPT_NAME")
+if [ -n "$ARCH_OPT_VALUE" ]; then
10
+ ARCH_OPT=",$ARCH_OPT_VALUE"
11
fi
12
13
bash ./build.sh "$(go env GOOS) ${GOARCH}${ARCH_OPT}"
0 commit comments