Skip to content

Commit f3ca2c9

Browse files
committed
Update install-go script to support arm64 architecture
1 parent a00b313 commit f3ca2c9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Container-Root/eks/ops/setup/install-go.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
# Install golang
44
# https://go.dev/doc/install
55

6-
curl -o go.tar.gz --location "https://go.dev/dl/go1.20.linux-amd64.tar.gz"
6+
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"
79
rm -rf /usr/local/go && tar -C /usr/local -xzf go.tar.gz
810
rm -f ./go.tar.gz
911
echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.bashrc

0 commit comments

Comments
 (0)