dotfiles/run_onchange-install-email-certificates.sh.tmpl
Sebastian Schulze 09b89d7020
Some checks are pending
/ doom (push) Blocked by required conditions
[chezmoi] Add new onchange script templates
2024-09-09 19:43:42 +02:00

12 lines
234 B
Bash

#!/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 }}