2019-01-20 22:28:08 +00:00
|
|
|
#!/usr/bin/expect
|
|
|
|
set timeout 2
|
2019-01-20 22:56:34 +00:00
|
|
|
set passphrase env(GPG_PASSWORD)
|
2019-01-20 22:28:08 +00:00
|
|
|
|
|
|
|
spawn reprepro -b [lindex $argv 0] [lindex $argv 1] [lindex $argv 2] [lindex $argv 3]
|
|
|
|
expect {
|
|
|
|
"*passphrase:*" {
|
|
|
|
send -- "$passphrase\r"
|
|
|
|
}
|
|
|
|
}
|
2019-01-21 21:33:19 +00:00
|
|
|
# expect {
|
|
|
|
# "*passphrase:*" {
|
|
|
|
# send -- "$passphrase\r"
|
|
|
|
# }
|
|
|
|
# }
|
2019-01-21 21:34:45 +00:00
|
|
|
# interact
|