lineage: Handle build type suffixes properly
This gets rid of grep error code when running breakfast. Change-Id: I7a8eb86b6068ae1973a96a929129da9eaa84865c
This commit is contained in:
parent
ba8e075ed4
commit
3bd9a6607a
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue