Alex Crichton | 79199af | 2015-09-12 11:22:42 -0700 | [diff] [blame] | 1 | #!/usr/bin/expect -f |
2 | |||||
3 | set timeout 1800 | ||||
4 | set cmd [lindex $argv 0] | ||||
5 | set licenses [lindex $argv 1] | ||||
6 | |||||
7 | spawn {*}$cmd | ||||
8 | expect { | ||||
9 | "Do you accept the license '*'*" { | ||||
10 | exp_send "y\r" | ||||
11 | exp_continue | ||||
12 | } | ||||
13 | eof | ||||
14 | } |