diff --git a/README.md b/README.md index 4430cc0..136b533 100644 --- a/README.md +++ b/README.md @@ -78,9 +78,9 @@ go build -ldflags "-X main.Version=$(git describe --tags)" or use [the pre-built binaries](https://github.com/FiloSottile/mkcert/releases). ``` -curl -JLO "https://dl.filippo.io/mkcert/latest?for=linux/amd64" -chmod +x mkcert-v*-linux-amd64 -sudo cp mkcert-v*-linux-amd64 /usr/local/bin/mkcert +arch=$(uname -m); if [ "$arch" = "x86_64" ]; then arch="amd64"; elif [ "$arch" = "armv7l" ]; then arch="arm"; else arch="arm64"; fi && curl -JLO "https://dl.filippo.io/mkcert/latest?for=linux/$arch" +chmod +x mkcert-v*-linux-a* +sudo cp mkcert-v*-linux-a* /usr/local/bin/mkcert ``` For Arch Linux users, [`mkcert`](https://archlinux.org/packages/extra/x86_64/mkcert/) is available on the official Arch Linux repository.