lineage: Handle build type suffixes properly

This gets rid of grep error code when running breakfast.

Change-Id: I7a8eb86b6068ae1973a96a929129da9eaa84865c
This commit is contained in:
LuK1337
2021-04-13 19:38:19 +02:00
parent ba8e075ed4
commit 3bd9a6607a

View File

@@ -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