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)