diff options
Diffstat (limited to 'checks/signdemokey')
-rwxr-xr-x | checks/signdemokey | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/checks/signdemokey b/checks/signdemokey new file mode 100755 index 000000000..e387446c2 --- /dev/null +++ b/checks/signdemokey @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +if [ $# != 3 ]; then + echo "Usage: signdemokey name user_id user_id_no" + exit 1 +fi +name="$1" +user_id="$2" +user_id_no="$3" + +echo "abc" | ../g10/gpg --options ./options --homedir $name \ + --sign-key --batch --yes --passphrase-fd 0 $user_id \ + $user_id_no sign save + |