libc-rs/ci/android-accept-licenses.sh
2017-02-23 16:08:29 -03:00

16 lines
228 B
Bash
Executable File

#!/usr/bin/expect -f
# ignore-license
set timeout 1800
set cmd [lindex $argv 0]
set licenses [lindex $argv 1]
spawn {*}$cmd
expect {
"Do you accept the license '*'*" {
exp_send "y\r"
exp_continue
}
eof
}