dotfiles/run_onchange-install-email-certificates.sh.tmpl

13 lines
234 B
Cheetah
Raw Permalink Normal View History

#!/usr/bin/env bash
set -eo pipefail
set -xv
{{ if hasKey . "mail" -}}
{{ range .mail.accounts -}}
{{ if hasKey . "certificate" -}}
echo '{{ .certificate }}' >"${HOME}/.cert/email-cert-{{ .name }}.pem"
{{ end }}
{{ end }}
{{ end }}