mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-16 13:16:47 +02:00
vendor.sh: condense check_board() a bit
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+2
-4
@@ -252,8 +252,7 @@ vendor_inject()
|
|||||||
|
|
||||||
check_board()
|
check_board()
|
||||||
{
|
{
|
||||||
failcheck="n"
|
failcheck="y" && check_release "$archive" && failcheck="n"
|
||||||
check_release "$archive" || failcheck="y"
|
|
||||||
if [ "$failcheck" = "y" ]; then
|
if [ "$failcheck" = "y" ]; then
|
||||||
[ -f "$rom" ] || $err "check_board \"$rom\": invalid path"
|
[ -f "$rom" ] || $err "check_board \"$rom\": invalid path"
|
||||||
[ -z "${rom+x}" ] && $err "check_board: no rom specified"
|
[ -z "${rom+x}" ] && $err "check_board: no rom specified"
|
||||||
@@ -261,8 +260,7 @@ check_board()
|
|||||||
else
|
else
|
||||||
vrelease="y"
|
vrelease="y"
|
||||||
board="$(detect_board "$archive")"
|
board="$(detect_board "$archive")"
|
||||||
fi
|
fi; readcfg
|
||||||
readcfg
|
|
||||||
}
|
}
|
||||||
|
|
||||||
check_release()
|
check_release()
|
||||||
|
|||||||
Reference in New Issue
Block a user