Merge "Do not print environment variables if ANDROID_QUIET_BUILD is set." am: a48079902e

Original change: https://android-review.googlesource.com/c/platform/build/+/1324452

Change-Id: I810840cf5a94967bd733e500f47d5f6b0d9f7d3e
This commit is contained in:
Treehugger Robot
2020-06-05 07:01:05 +00:00
committed by Automerger Merge Worker

View File

@@ -650,7 +650,6 @@ function lunch()
export TARGET_BUILD_APPS=
local product variant_and_version variant version
product=${selection%%-*} # Trim everything after first dash
variant_and_version=${selection#*-} # Trim everything up to first dash
if [ "$variant_and_version" != "$selection" ]; then
@@ -675,7 +674,6 @@ function lunch()
then
return 1
fi
export TARGET_PRODUCT=$(get_build_var TARGET_PRODUCT)
export TARGET_BUILD_VARIANT=$(get_build_var TARGET_BUILD_VARIANT)
if [ -n "$version" ]; then
@@ -685,10 +683,10 @@ function lunch()
fi
export TARGET_BUILD_TYPE=release
echo
[[ -n "${ANDROID_QUIET_BUILD:-}" ]] || echo
set_stuff_for_environment
printconfig
[[ -n "${ANDROID_QUIET_BUILD:-}" ]] || printconfig
destroy_build_var_cache
}