diff options
author | LuK1337 <priv.luk@gmail.com> | 2021-04-13 19:57:24 +0200 |
---|---|---|
committer | LuK1337 <priv.luk@gmail.com> | 2021-04-13 19:57:24 +0200 |
commit | 75b03c622a64c135b0d7dcd6cd42150fd3254554 (patch) | |
tree | 5209a28d8bee63dfd50b1a1e98e99f5405529971 | |
parent | 224d5a3c880b30101043658673500cc5f232f0b1 (diff) |
envsetup: Fix the way we check check_product's return value
Change-Id: I5a2a4b7be5dfee198094902aaa2c9a8c27b97704
-rw-r--r-- | envsetup.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/envsetup.sh b/envsetup.sh index 975930771a..47ae6f1464 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) |