Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide Android sdkmanager download progress bar?

Tags:

When I run an sdkmanager command like sdkmanager "build-tools;26.0.1" it spits out hundreds of lines in Jenkins console because of the download progress bar. Is there a way to hide it or put it in quiet mode?

I don't see an option in sdkmanager --help output. I'm considering piping the output to /dev/null.

like image 700
Kevin Brotcke Avatar asked Oct 21 '17 00:10

Kevin Brotcke


2 Answers

I ended up hiding the progress bar with grep.

sdkmanager --update | grep -v = || true 
like image 83
Kevin Brotcke Avatar answered Oct 08 '22 17:10

Kevin Brotcke


As of now the documentation lists all the arguments and there is no --silent. Pipeing it to /dev/null to silence it can be a solution.

like image 44
Flekken Avatar answered Oct 08 '22 16:10

Flekken