commit | 32fa7ee8c31324617a235bdc3d39556dc1491b5b | [log] [tgz] |
---|---|---|
author | Anton Hansson <hansson@google.com> | Mon Jun 14 17:09:58 2021 +0100 |
committer | Anton Hansson <hansson@google.com> | Mon Jun 14 17:21:22 2021 +0100 |
tree | 203ea60891800da19fda657f160a636cdb8755d1 | |
parent | 6497a1b7f8dce552832134a6ac9dac0072401cbe [diff] [blame] |
Add help message for likely typo to lunch Test: lunch aosp_blueline_userdebug Change-Id: Ieb8059d1717a98f66d61387d6bfd28470835eb6e
diff --git a/envsetup.sh b/envsetup.sh index 120f6e0..bbb18e5 100644 --- a/envsetup.sh +++ b/envsetup.sh
@@ -703,6 +703,10 @@ build_build_var_cache if [ $? -ne 0 ] then + if [[ "$product" =~ .*_(eng|user|userdebug) ]] + then + echo "Did you mean -${product/*_/}? (dash instead of underscore)" + fi return 1 fi export TARGET_PRODUCT=$(get_build_var TARGET_PRODUCT)