drone-detach-sign/gpg.expect
Davide Depau 9bc6834437
All checks were successful
continuous-integration/drone/push Build is passing
He protec, he attac, but most importantly he expec
2020-04-30 01:58:14 +02:00

10 lines
179 B
Plaintext
Executable file

#!/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