Last active
August 29, 2015 13:57
-
-
Save mattak/9804107 to your computer and use it in GitHub Desktop.
type 'y' when update android sdk. usage : expect-android-update.sh sysimg-19
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
#!/bin/bash | |
OPTIONS="--no-ui --all --filter" | |
expect -c " | |
set timeout -1 | |
spawn android update sdk $OPTIONS $@ | |
expect { | |
\"Do you accept the license\" { | |
send \"y\n\" | |
exp_continue | |
} | |
Downloading { | |
exp_continue | |
} | |
Installing { | |
exp_continue | |
} | |
} | |
" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for reference of https://gist.github.com/9re/7925454 and http://stackoverflow.com/questions/4681697/is-there-a-way-to-automate-the-android-sdk-installation