mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
18 lines
330 B
Plaintext
Executable File
18 lines
330 B
Plaintext
Executable File
#!/usr/bin/expect -f
|
|
#
|
|
# Helper script to respond to passphrase prompts from the gpg command.
|
|
#
|
|
|
|
set timeout 600
|
|
set command [join $argv]
|
|
set passphrase $env(PASSPHRASE)
|
|
puts "# $command"
|
|
spawn -noecho {*}$command
|
|
expect {
|
|
-exact "Enter passphrase: " {
|
|
send -- "$passphrase\r"
|
|
exp_continue
|
|
}
|
|
eof { }
|
|
}
|