Skip to content

Commit 12320cc

Browse files
committed
WIP: try to fix the generate
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 55f1187 commit 12320cc

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/fixtures/generate.sh

100644100755
Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
11
#!/usr/bin/env sh
22
set -ex
33

4-
gpg --batch --gen-key <<-EOF
4+
# shellcheck disable=SC2155
5+
export GPG_TTY=$(tty)
6+
gpg --batch --gen-key --no-tty <<-EOF
57
%echo Generating a standard key
68
Key-Type: DSA
79
Key-Length: 1024
810
Subkey-Type: ELG-E
911
Subkey-Length: 1024
1012
Name-Real: Meshuggah Rocks
1113
Name-Email: [email protected]
14+
Passphrase: with stupid passphrase
1215
Expire-Date: 0
1316
# Do a commit here, so that we can later print "done" :-)
1417
%commit
1518
%echo done
1619
EOF
20+
21+
# doesn't work; still asks for passphrase interactively
22+
# gpg --output private.pgp --armor --export-secret-key [email protected]
23+
24+
# doesn't work; still asks for passphrase interactively
25+
# gpg --passphrase 'with stupid passphrase' --output private.pgp --armor --export-secret-key [email protected]
26+
27+
# doesn't work; still asks for passphrase interactively
28+
# gpg --batch --passphrase 'with stupid passphrase' --no-tty --output private.pgp --armor --export-secret-key [email protected]

0 commit comments

Comments
 (0)