Skip to content

Instantly share code, notes, and snippets.

@eyal-rounds
eyal-rounds / android_accept_license.sh
Last active April 11, 2016 17:51
shell script that accept the license of android sdk update --no-ui
#!/usr/bin/expect -f
# Usage example:
# ./accept-licenses "android update sdk --no-ui --all --filter build-tools" "android-sdk-license-bcbbd656|intel-android-sysimage-license-1ea702d1"
set timeout 1800
set cmd [lindex $argv 0]
set licenses [lindex $argv 1]
spawn {*}$cmd