Created
October 18, 2016 17:38
-
-
Save rbsilva/8eef2af2541e38f7fd64391de22a522c to your computer and use it in GitHub Desktop.
android-accept-licenses.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/expect -f | |
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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment