Suppress harmless broken-pipe warnings from "yes"

This commit is contained in:
Ben Liblit 2018-02-07 20:37:31 -06:00
parent bcf685ba40
commit 1a82397fd7
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ task unpackAndroidSdk(type: Sync, dependsOn: verifyAndroidSdk) {
task installAndroidBuildTools(type: Exec, dependsOn: unpackAndroidSdk) {
def manager = "${unpackAndroidSdk.outputs.files[0]}/tools/bin/sdkmanager"
ext.version = '26.0.2'
commandLine 'sh', '-ceu', "yes | $manager build-tools\\;$version >/dev/null"
commandLine 'sh', '-ceu', "yes 2>/dev/null | $manager build-tools\\;$version >/dev/null"
inputs.dir "${unpackAndroidSdk.outputs.files[0]}/tools"
outputs.dir "${unpackAndroidSdk.outputs.files[0]}/build-tools"
}