aboutsummaryrefslogtreecommitdiff
path: root/envsetup.sh
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2024-03-11 11:28:46 +0100
committerGeorge Zacharia <george.zcharia@gmail.com>2024-04-26 13:04:30 +0530
commitc53a46da43b9e4103f75ae76f3f492ac769f4360 (patch)
treee6350dc21e9c62b03b1756c1eae76410df98c458 /envsetup.sh
parentaaa69110a67b5c529629ffb9344a9c95bace8901 (diff)
envsetup: Pass valid TARGET_RELEASE to check_product
Change-Id: I709248c0d362cffdac57d9893b7dfb4d2329204c
Diffstat (limited to 'envsetup.sh')
-rw-r--r--envsetup.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/envsetup.sh b/envsetup.sh
index b48861475b..f126fd134f 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -218,7 +218,7 @@ function check_product()
export LINEAGE_BUILD
TARGET_PRODUCT=$1 \
- TARGET_RELEASE= \
+ TARGET_RELEASE=$2 \
TARGET_BUILD_VARIANT= \
TARGET_BUILD_TYPE= \
TARGET_BUILD_APPS= \
@@ -829,14 +829,14 @@ function lunch()
return 1
fi
- if ! check_product $product
+ if ! check_product $product $release
then
# if we can't find a product, try to grab it off the LineageOS GitHub
T=$(gettop)
cd $T > /dev/null
vendor/lineage/build/tools/roomservice.py $product
cd - > /dev/null
- check_product $product
+ check_product $product $release
else
T=$(gettop)
cd $T > /dev/null