summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-09-29 22:34:34 +0100
committerLeah Rowe <leah@libreboot.org>2023-09-29 22:34:34 +0100
commit6519cea9cff998d3484cbbbb3fbbedb886b93dfd (patch)
treee67b0f654b3be5adfb756e061d9d55d226fec567 /include
parentac05e5ff17ad8a493de2866b50b269d088c35c33 (diff)
include/blobutil: simplify check_defconfig()
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rwxr-xr-xinclude/blobutil.sh5
1 files changed, 2 insertions, 3 deletions
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()