Skip to content

Instantly share code, notes, and snippets.

@gabrielbarros
Created March 6, 2024 20:09
Show Gist options
  • Save gabrielbarros/9d71f642a8a2713d66beb572da6374b3 to your computer and use it in GitHub Desktop.
Save gabrielbarros/9d71f642a8a2713d66beb572da6374b3 to your computer and use it in GitHub Desktop.
Install and update mkcert
#!/usr/bin/env bash
set -euo pipefail
echo 'Installing mkcert...'
curl -s https://api.github.com/repos/FiloSottile/mkcert/releases/latest | \
jq -r '.assets[].browser_download_url' | grep -F linux-amd64 | wget -i -
sudo mv mkcert-* /usr/local/bin/mkcert
sudo chmod a+x /usr/local/bin/mkcert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment