mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Add helper script to sign using expect
This commit is contained in:
parent
8e603dc18d
commit
3210b8c0dc
17
tools/scripts/sign.exp
Executable file
17
tools/scripts/sign.exp
Executable file
@ -0,0 +1,17 @@
|
||||
#!/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 { }
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user