Skip to content

Commit 29b182b

Browse files
authored
Merge pull request #476 from dscho/gnupg-with-gpgkey-on-ubuntu
gnupg-with-gpgkey: allow running on Ubuntu
2 parents 933ea27 + ab7a23e commit 29b182b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

gnupg-with-gpgkey.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,19 @@
99
# using secret variables, of course).
1010

1111
case "$1" in
12+
--status-fd=*)
13+
status_fd="$1"
14+
arg1="$2"
15+
;;
16+
*)
17+
status_fd=
18+
arg1="$1"
19+
;;
20+
esac
21+
22+
case "$arg1" in
1223
-bsau)
13-
eval gpg --batch --yes --no-tty --pinentry-mode loopback -bsau $GPGKEY
24+
eval gpg --batch --yes --no-tty --pinentry-mode loopback $status_fd -bsau $GPGKEY
1425
;;
1526
--detach-sign)
1627
case "$*" in

0 commit comments

Comments
 (0)