commit | e444a5c3fb7b99bfa10388effa38fba8e91ee613 | [log] [tgz] |
---|---|---|
author | Anton Hansson <hansson@google.com> | Tue Jun 15 10:22:54 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Jun 15 10:22:54 2021 +0000 |
tree | 9e6ba6815b05c6eab184fc06b3ccb05be7f67ea1 | |
parent | 1b219a5198db10eeaacc8fa57cf45ca8b6b83759 [diff] | |
parent | 47bebaca8b0eeaeec70c6cd66ee0da4791e4855f [diff] |
Merge "Add help message for likely typo to lunch" am: 757e2e1fc1 am: 47bebaca8b Original change: https://android-review.googlesource.com/c/platform/build/+/1736893 Change-Id: I526aa9d55b0bf4d6a10cc16b117e93fbb49896c8
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)