drone-detach-sign/gpg.expect

10 lines
179 B
Plaintext
Raw Normal View History

2020-04-25 01:17:21 +00:00
#!/usr/bin/expect -f
spawn gpg {*}$argv
expect -timeout 10 "Passphrase:"
send_user "*** passphrase sent ***"
send $::env(PLUGIN_GPG_PASSPHRASE)
send "\r"
expect -timeout -1 eof