add dirty hack for passwords
This commit is contained in:
parent
1302cfb96b
commit
1ed77058fa
16
reprepro_expect.sh
Normal file
16
reprepro_expect.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user