From 32923f56082210b4cdaca5f8bbc4f99cea5343f9 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 18 May 2024 11:14:39 +0100 Subject: vendor.sh: simplify defconfig check re-use check_defconfig from option.sh Signed-off-by: Leah Rowe --- include/vendor.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include/vendor.sh') diff --git a/include/vendor.sh b/include/vendor.sh index 3fdb7225..19228cf1 100755 --- a/include/vendor.sh +++ b/include/vendor.sh @@ -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/"* -- cgit v1.2.1