Skip to content

Commit b5a7dbb

Browse files
authored
Update README.md
1 parent d8ca58f commit b5a7dbb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ brew install ec2-instance-selector
5050
#### Install w/ Curl for Linux/Mac
5151

5252
```
53-
curl -Lo ec2-instance-selector https://github.com/aws/amazon-ec2-instance-selector/releases/download/v2.4.1/ec2-instance-selector-`uname | tr '[:upper:]' '[:lower:]'`-amd64 && chmod +x ec2-instance-selector
53+
os=$(uname | tr 'A-Z' 'a-z')
54+
arch=$(printf "%s" "$(uname -m | tr 'A-Z' 'a-z' | sed -E 's/x86_64|i[3-6]86/amd64/;s/aarch64|arm64/arm64/')")
55+
curl -Lo ec2-instance-selector https://github.com/aws/amazon-ec2-instance-selector/releases/download/v3.1.0/ec2-instance-selector-$os-$arch && chmod +x ec2-instance-selector
5456
sudo mv ec2-instance-selector /usr/local/bin/
5557
ec2-instance-selector --version
5658
```

0 commit comments

Comments
 (0)