Forked from vgaidarji/sdkmanager-accept-licenses.sh
Created
December 3, 2017 19:58
-
-
Save dmitry-salnikov/934ed1a6a58c2b275f0cac04b1f3029f to your computer and use it in GitHub Desktop.
Update Android sdkmanager licenses automatically
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 | |
| /usr/bin/expect -c ' | |
| set timeout -1; | |
| spawn '"${ANDROID_HOME}"'/tools/bin/sdkmanager --licenses; | |
| expect { | |
| "y/N" { 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