include/blobutil: simplify check_defconfig()

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2023-09-29 22:34:34 +01:00
parent ac05e5ff17
commit 6519cea9cf
2 changed files with 4 additions and 4 deletions
+2 -3
View File
@@ -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()