From 6519cea9cff998d3484cbbbb3fbbedb886b93dfd Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 29 Sep 2023 22:34:34 +0100 Subject: include/blobutil: simplify check_defconfig() Signed-off-by: Leah Rowe --- include/blobutil.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/blobutil.sh b/include/blobutil.sh index 324d19eb..a32a8ba6 100755 --- a/include/blobutil.sh +++ b/include/blobutil.sh @@ -47,11 +47,10 @@ eval "${setvars}" check_defconfig() { - no_config="printf \"No target defconfig in %s\\n\" ${1} 1>&2; return 1" for x in "${1}"/config/*; do - [ -f "${x}" ] && no_config="" + [ -f "${x}" ] && return 0 done - eval "${no_config}" + return 1 } fetch() -- cgit v1.2.1