Last active
December 26, 2017 20:08
-
-
Save niedzielski/467cc7ed9ee89040be19d57863489a82 to your computer and use it in GitHub Desktop.
Install the entire Android SDK from the command line without interaction.
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
# not sure if i wrote this or not. a google search turns up similar results from: | |
# http://stackoverflow.com/a/30623864/970346 | |
# https://gist.github.com/hardikdangar/67cb7dc1ad7812966a19 | |
time expect -c " | |
set timeout -1; | |
spawn android update sdk -u -a | |
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