diff --git a/.chezmoi.toml.tmpl b/.chezmoi.toml.tmpl index 8828cc9..af444d2 100644 --- a/.chezmoi.toml.tmpl +++ b/.chezmoi.toml.tmpl @@ -12,7 +12,9 @@ symmetric = true args = ["--batch", "--passphrase", {{ $passphrase | quote }}, "--no-symkey-cache"] [data] -gpgKey = {{ output "get-gpg-key" | trim | quote }} +{{ if lookPath "get-gpg-key" -}} + gpgKey = {{ output "get-gpg-key" | trim | quote }} +{{- end }} passphrase = {{ $passphrase | quote }} [data.drapeau]