summaryrefslogtreecommitdiff
path: root/rpm/build/expect-signrepo
blob: 81035f9f2a4234526db7ccdc8da4a342e86586a6 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/expect
set password "not our actual passphrase"
set key [lindex $argv 0]
set output [lindex $argv 1]
set input [lindex $argv 2]
spawn gpg -sab --yes -u "$key" -o $output $input
expect "Enter passphrase:"
send -- "$password\r"
expect eof