vendor.sh: condense check_board() a bit

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2024-06-28 13:59:26 +01:00
parent d12a686015
commit 8f50131e1e
+2 -4
View File
@@ -252,8 +252,7 @@ vendor_inject()
check_board()
{
failcheck="n"
check_release "$archive" || failcheck="y"
failcheck="y" && check_release "$archive" && failcheck="n"
if [ "$failcheck" = "y" ]; then
[ -f "$rom" ] || $err "check_board \"$rom\": invalid path"
[ -z "${rom+x}" ] && $err "check_board: no rom specified"
@@ -261,8 +260,7 @@ check_board()
else
vrelease="y"
board="$(detect_board "$archive")"
fi
readcfg
fi; readcfg
}
check_release()