File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,9 @@ brew install ec2-instance-selector
50
50
#### Install w/ Curl for Linux/Mac
51
51
52
52
```
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
54
56
sudo mv ec2-instance-selector /usr/local/bin/
55
57
ec2-instance-selector --version
56
58
```
You can’t perform that action at this time.
0 commit comments