10 lines
178 B
Plaintext
10 lines
178 B
Plaintext
|
#!/usr/bin/expect -f
|
||
|
|
||
|
spawn gpg {*}$argv
|
||
|
|
||
|
expect -timeout 10 "Passphrase:"
|
||
|
send_user "*** passphrase sent ***"
|
||
|
send $::env(PLUGIN_GPG_PASSPHRASE)
|
||
|
send "\r"
|
||
|
expec -timeout -1 eof
|