vendor.sh: print an error upon ill-defined target

previously, it was attempting to load the configs and silently
failing. we must provide feedback to the user.

Signed-off-by: Leah Rowe <leah@libreboot.org>
master
Leah Rowe 2024-05-18 11:25:28 +01:00
parent 3f73f3d0b4
commit bb7255c34b
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,8 @@ vendor_download()
boarddir="${cbcfgsdir}/${board}"
_b="${board%%_*mb}" # shorthand (no duplication per rom size)
[ -d "$boarddir" ] || $err "Target '$board' not defined."
check_defconfig "${boarddir}" && exit 0
detect_firmware && exit 0
scan_config "${_b}" "config/vendor"