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

Commit 349993c4 authored by LuK1337's avatar LuK1337
Browse files

lineage: Handle build type suffixes properly

This gets rid of grep error code when running breakfast.

Change-Id: I7a8eb86b6068ae1973a96a929129da9eaa84865c
parent e20409af
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -73,8 +73,7 @@ function breakfast()
        # No arguments, so let's have the full menu
        lunch
    else
        echo "z$target" | grep -q "-"
        if [ $? -eq 0 ]; then
        if [[ "$target" =~ -(user|userdebug|eng)$ ]]; then
            # A buildtype was specified, assume a full device name
            lunch $target
        else