vendor.sh: simplify defconfig check

re-use check_defconfig from option.sh

Signed-off-by: Leah Rowe <leah@libreboot.org>
master
Leah Rowe 2024-05-18 11:14:39 +01:00
parent f8e3ca3b22
commit 32923f5608
1 changed files with 2 additions and 4 deletions

View File

@ -46,10 +46,8 @@ vendor_download()
detect_firmware()
{
_cfg_exists="n"
for _chk_file in "${boarddir}/config/"*; do
[ -f "${_chk_file}" ] && _cfg_exists="y" && break
done
_cfg_exists="y"
check_defconfig "$boarddir" && _cfg_exists="n"
[ "${_cfg_exists}" = "n" ] && return 1
set -- "${boarddir}/config/"*