File tree Expand file tree Collapse file tree
.github/workflows/fixtures Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /usr/bin/env sh
22set -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
68Key-Type: DSA
79Key-Length: 1024
810Subkey-Type: ELG-E
911Subkey-Length: 1024
1012Name-Real: Meshuggah Rocks
1113Name-Email: meshuggah@example.com
14+ Passphrase: with stupid passphrase
1215Expire-Date: 0
1316# Do a commit here, so that we can later print "done" :-)
1417%commit
1518%echo done
1619EOF
20+
21+ # doesn't work; still asks for passphrase interactively
22+ # gpg --output private.pgp --armor --export-secret-key meshuggah@example.com
23+
24+ # doesn't work; still asks for passphrase interactively
25+ # gpg --passphrase 'with stupid passphrase' --output private.pgp --armor --export-secret-key meshuggah@example.com
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 meshuggah@example.com
You can’t perform that action at this time.
0 commit comments