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 a00b313 commit f3ca2c9Copy full SHA for f3ca2c9
1 file changed
Container-Root/eks/ops/setup/install-go.sh
@@ -3,7 +3,9 @@
3
# Install golang
4
# https://go.dev/doc/install
5
6
-curl -o go.tar.gz --location "https://go.dev/dl/go1.20.linux-amd64.tar.gz"
+ARCH=$(uname -m)
7
+if [ "${ARCH}" == "aarch64" ]; then ARCH=arm64; fi
8
+curl -o go.tar.gz --location "https://go.dev/dl/go1.20.linux-${ARCH}.tar.gz"
9
rm -rf /usr/local/go && tar -C /usr/local -xzf go.tar.gz
10
rm -f ./go.tar.gz
11
echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.bashrc
0 commit comments