Skip to content

Commit dd817c8

Browse files
authored
fix: auto-detect system architecture instead of hardcoding (#8708)
1 parent 80325bf commit dd817c8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ To download the latest release, run:
6363

6464
```sh
6565
# for ARM systems, set ARCH to: `arm64`, `armv6` or `armv7`
66-
ARCH=amd64
66+
ARCH=$(uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/')
6767
PLATFORM=$(uname -s)_$ARCH
6868

6969
curl -sLO "https://github.com/eksctl-io/eksctl/releases/latest/download/eksctl_$PLATFORM.tar.gz"
@@ -103,7 +103,7 @@ Optionally, verify the checksum:
103103

104104
```sh
105105
# for ARM systems, set ARCH to: `arm64`, `armv6` or `armv7`
106-
ARCH=amd64
106+
ARCH=$(uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/')
107107
PLATFORM=windows_$ARCH
108108

109109
curl -sLO "https://github.com/eksctl-io/eksctl/releases/latest/download/eksctl_$PLATFORM.zip"

0 commit comments

Comments
 (0)