Skip to content

Instantly share code, notes, and snippets.

@yanaga
Created August 31, 2014 14:58
Show Gist options
  • Save yanaga/893f5d692cf26c27bc16 to your computer and use it in GitHub Desktop.
Save yanaga/893f5d692cf26c27bc16 to your computer and use it in GitHub Desktop.
Automate android-sdk headless installation
expect -c '
set timeout -1;
spawn android - update sdk --no-ui --all;
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