aboutsummaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-03-04 13:51:20 +0100
committerlonkaars <loek@pipeframe.xyz>2024-03-04 13:51:20 +0100
commitb8d6e0d83a098b090d97f2eee0d3164377a93476 (patch)
tree64cacf5437591b2908aead4ffa3951719755d9d8 /.local
parent9ed10034b3b0fadabe02c6adb2d698681012e086 (diff)
fix git gpg commit signing
Diffstat (limited to '.local')
-rwxr-xr-x.local/share/bin/gpg-git5
1 files changed, 5 insertions, 0 deletions
diff --git a/.local/share/bin/gpg-git b/.local/share/bin/gpg-git
new file mode 100755
index 0000000..281b793
--- /dev/null
+++ b/.local/share/bin/gpg-git
@@ -0,0 +1,5 @@
+#!/bin/sh
+GPG_KEY_ID="$GPG_ID_GIT" # see ~/.profile
+GPG_KEY_PASSPHRASE="$(pass "gpg/$GPG_KEY_ID.asc" | head -n1)"
+echo "gpg $*" >> ~/gpg-git.txt
+gpg --batch --no-tty --pinentry-mode loopback --passphrase "$GPG_KEY_PASSPHRASE" "$@"