We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66d6faa commit 3691f37Copy full SHA for 3691f37
daemon/References/macOS/scripts/build-wireguard.sh
@@ -26,7 +26,9 @@ setup_go_env() {
26
27
# Get system architecture
28
local ARCH="$(uname -m)"
29
- if [ "${ARCH}" != "x86_64" ] && [ "${ARCH}" != "arm64" ]; then
+ if [ "${ARCH}" = "x86_64" ]; then
30
+ ARCH="amd64"
31
+ elif [ "${ARCH}" != "arm64" ]; then
32
echo "ERROR: Unsupported architecture: ${ARCH}"
33
exit 1
34
fi
@@ -47,7 +49,7 @@ setup_go_env() {
47
49
48
50
51
# Use the temporary Go installation
- export PATH="${TEMP_GOROOT}/bin:$PATH"
52
+ export PATH="${TEMP_GOROOT}/bin:${PATH}"
53
export GOROOT="${TEMP_GOROOT}"
54
export GOPATH="${TEMP_GOPATH}"
55
0 commit comments