Skip to content

Commit 124ad41

Browse files
committed
Silence unzip when extracting Android SDK
1 parent 9408f9c commit 124ad41

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ci/android-install-sdk.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ SDK=4333796
2222
API=25
2323
mkdir sdk
2424
curl --retry 10 https://dl.google.com/android/repository/sdk-tools-linux-${SDK}.zip -O
25-
unzip -d sdk sdk-tools-linux-${SDK}.zip
25+
unzip -q -d sdk sdk-tools-linux-${SDK}.zip
2626

2727
case "$1" in
2828
arm | armv7)
@@ -57,7 +57,10 @@ echo '#Fri Nov 03 10:11:27 CET 2017 count=0' >> /root/.android/repositories.cfg
5757
yes | ./sdk/tools/bin/sdkmanager --list --verbose
5858

5959
# --no_https avoids
60-
# javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
60+
# javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
61+
#
62+
# | grep -v = || true removes the progress bar output from the sdkmanager
63+
# which produces an insane amount of output.
6164
yes | ./sdk/tools/bin/sdkmanager --licenses --no_https | grep -v = || true
6265
yes | ./sdk/tools/bin/sdkmanager --no_https \
6366
"emulator" \

0 commit comments

Comments
 (0)