1 2 3 4 5 6 7
#!/usr/bin/bash host=${1:?missing host argument} subdomains=(www git dav) mkcert -install mkcert "${subdomains[@]/%/.$host}" "$host"