From 75b03c622a64c135b0d7dcd6cd42150fd3254554 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Tue, 13 Apr 2021 19:57:24 +0200 Subject: [PATCH] envsetup: Fix the way we check check_product's return value Change-Id: I5a2a4b7be5dfee198094902aaa2c9a8c27b97704 --- envsetup.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/envsetup.sh b/envsetup.sh index 975930771..47ae6f146 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -661,8 +661,7 @@ function lunch() return 1 fi - check_product $product - if [ $? -ne 0 ] + if ! check_product $product then # if we can't find a product, try to grab it off the LineageOS GitHub T=$(gettop)