blob: 8d9e600a9dcd8e1641b9afb3a862deb383d2e3af (
plain)
1
2
3
4
5
6
|
#!/bin/sh
{{- with ( dig "git" "gpg_id" nil . ) }}
GPG_KEY_ID="{{ . }}"
GPG_KEY_PASSPHRASE="$(pass "gpg/$GPG_KEY_ID.asc" | head -n1)"
gpg --batch --no-tty --pinentry-mode loopback --passphrase "$GPG_KEY_PASSPHRASE" "$@"
{{- end }}
|