add dirty hack for passwords

This commit is contained in:
konrad 2019-01-20 23:28:08 +01:00
parent 1302cfb96b
commit 1ed77058fa
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 16 additions and 0 deletions

16
reprepro_expect.sh Normal file
View File

@ -0,0 +1,16 @@
#!/usr/bin/expect
set timeout 2
set passphrase "mysupersecretpassword"
spawn reprepro -b [lindex $argv 0] [lindex $argv 1] [lindex $argv 2] [lindex $argv 3]
expect {
"*passphrase:*" {
send -- "$passphrase\r"
}
}
expect {
"*passphrase:*" {
send -- "$passphrase\r"
}
}
interact