Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 757e2e1f authored by Anton Hansson's avatar Anton Hansson Committed by Gerrit Code Review
Browse files

Merge "Add help message for likely typo to lunch"

parents c09cda8c 32fa7ee8
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -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)