|
@@ -1,14 +1,15 @@
|
|
|
#!/bin/sh
|
|
|
|
|
|
-set -x
|
|
|
-
|
|
|
printenv GNUPG_IMPORT | gpg --import --import-options import-show
|
|
|
|
|
|
-for fingerprint in $(gpg --list-keys --with-colons | grep '^fpr:' | cut -d ':' -f 10); do
|
|
|
- echo -e '5\ny\n' | gpg --command-fd 0 --batch --edit-key $fingerprint trust
|
|
|
+for fingerprint in $(gpg --list-keys --with-colons --batch | grep '^fpr:' | cut -d ':' -f 10); do
|
|
|
+ echo -e '5\ny\n' \
|
|
|
+ | gpg --command-fd 0 --batch --edit-key $fingerprint trust 2>/dev/null
|
|
|
done
|
|
|
|
|
|
-# -d -d: log level notice
|
|
|
+set -x
|
|
|
+
|
|
|
+# -d: log level warning
|
|
|
# -T: inactivity timeout (before input at EOF?, default: none)
|
|
|
# -t: reply timeout (after input at EOF, default: 0.5s)
|
|
|
-exec socat -d -d -T4 -t16 tcp-l:6156,fork exec:/invoke-gpgit.sh
|
|
|
+exec socat -d -T4 -t16 tcp-l:6156,fork exec:/invoke-gpgit.sh
|