Skip to content

Instantly share code, notes, and snippets.

@sigmabeta
Created August 6, 2015 14:58
Show Gist options
  • Save sigmabeta/96515d74444c3cc48da2 to your computer and use it in GitHub Desktop.
Save sigmabeta/96515d74444c3cc48da2 to your computer and use it in GitHub Desktop.
Bash script for updating Android dependencies on a CI server
#!/bin/bash
cd ${ANDROID_SDK}/tools
expect -c '
set timeout -1;
spawn ./android update sdk --no-ui --filter platform,tool,extra;
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