commit | 757e2e1fc10d92ceae13d653c2e93ebd571e5a68 | [log] [tgz] |
---|---|---|
author | Anton Hansson <hansson@google.com> | Tue Jun 15 09:49:31 2021 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Jun 15 09:49:31 2021 +0000 |
tree | 03026db7f23a22ae8ad2e1d79954f9a1293976a8 | |
parent | c09cda8c6c0714499defd1f8e3019adf917169d0 [diff] | |
parent | 32fa7ee8c31324617a235bdc3d39556dc1491b5b [diff] |
Merge "Add help message for likely typo to lunch"
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)