Created
June 1, 2016 16:53
-
-
Save tabrindle/fb89e5e9dc1be14b0014707a25f11b76 to your computer and use it in GitHub Desktop.
update android sdk
This file contains hidden or 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 | |
expect -c " | |
set timeout -1; | |
spawn android update sdk --no-ui --all --filter tools,platform-tools,android-22,$(android list sdk -u -a -e | grep 'build-tools-' | head -n 2 | tail -n 1 | cut -d' ' -f4 | tr -d '"'),extra-android-m2repository,extra-google-m2repository,extra-google-google_play_services,extra-google-webdriver,extra-intel-Hardware_Accelerated_Execution_Manager; | |
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