Merge "Add help message for likely typo to lunch" am: 757e2e1fc1 am: 47bebaca8b am: e444a5c3fb am: 86eac1d610

Original change: https://android-review.googlesource.com/c/platform/build/+/1736893

Change-Id: Id6a3738ea35587f36b1fb8f3669e91ac378c6b19
This commit is contained in:
Anton Hansson
2021-06-15 17:47:46 +00:00
committed by Automerger Merge Worker

View File

@@ -703,6 +703,10 @@ function lunch()
build_build_var_cache build_build_var_cache
if [ $? -ne 0 ] if [ $? -ne 0 ]
then then
if [[ "$product" =~ .*_(eng|user|userdebug) ]]
then
echo "Did you mean -${product/*_/}? (dash instead of underscore)"
fi
return 1 return 1
fi fi
export TARGET_PRODUCT=$(get_build_var TARGET_PRODUCT) export TARGET_PRODUCT=$(get_build_var TARGET_PRODUCT)