From b6a0d39dad22ac4acd7746dc1eb3c9fdc5669c48 Mon Sep 17 00:00:00 2001 From: Greg Kaiser Date: Fri, 27 Oct 2023 15:56:32 -0600 Subject: [PATCH] Set empty TARGET_RELEASE for some commands The same commands where we're setting things like TARGET_BUILD_VARIANT to be explicitly empty, we do the same with TARGET_RELEASE. Bug: 307946156 Test: 'lunch' with no arguments Change-Id: If78eacd62725122d47829e2e9079b182fdafb9b4 --- envsetup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/envsetup.sh b/envsetup.sh index b3cf988ad3..ee452805c7 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -205,6 +205,7 @@ function check_product() return fi TARGET_PRODUCT=$1 \ + TARGET_RELEASE= \ TARGET_BUILD_VARIANT= \ TARGET_BUILD_TYPE= \ TARGET_BUILD_APPS= \ @@ -728,7 +729,7 @@ function print_lunch_menu() { local uname=$(uname) local choices - choices=$(TARGET_BUILD_APPS= TARGET_PRODUCT= TARGET_BUILD_VARIANT= get_build_var COMMON_LUNCH_CHOICES 2>/dev/null) + choices=$(TARGET_BUILD_APPS= TARGET_PRODUCT= TARGET_RELEASE= TARGET_BUILD_VARIANT= get_build_var COMMON_LUNCH_CHOICES 2>/dev/null) local ret=$? echo