Changeset View
Changeset View
Standalone View
Standalone View
image/accept-sdk-license.sh
1 | #!/usr/bin/expect -f | 1 | #!/usr/bin/expect -f | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | set timeout 1800 | 3 | set timeout 1800 | ||
4 | 4 | | |||
5 | # spawn update command and let's wait for password question | 5 | # spawn update command and let's wait for password question | ||
6 | spawn $env(ADIR)/android-sdk-linux/tools/android update sdk --no-ui --all --filter tools,platform-tools,build-tools-23.0.1,android-22,sys-img-armeabi-v7a-android-22 | 6 | spawn $env(ADIR)/android-sdk-linux/tools/android update sdk --no-ui --all --filter tools,platform-tools,build-tools-28.0.2,android-24,sys-img-armeabi-v7a-android-24 | ||
7 | expect { | 7 | expect { | ||
8 | "Do you accept the license '*'*" { | 8 | "Do you accept the license '*'*" { | ||
9 | exp_send "y\r" | 9 | exp_send "y\r" | ||
10 | exp_continue | 10 | exp_continue | ||
11 | } | 11 | } | ||
12 | eof | 12 | eof | ||
13 | } | 13 | } |