summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-28 13:59:26 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-28 13:59:26 +0100
commit8f50131e1e3ca4acd2e8e1d2a167ae48a2a4c75b (patch)
treec50e074ea301c0b7274d295e8bbec34fdeaf094c /include
parentd12a686015e86c04b83d547437b8d455128fbcfb (diff)
vendor.sh: condense check_board() a bit
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rwxr-xr-xinclude/vendor.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/vendor.sh b/include/vendor.sh
index e3826390..7154b7ea 100755
--- a/include/vendor.sh
+++ b/include/vendor.sh
@@ -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()