update/blobs/*: unify checking of defconfig files

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2023-09-04 16:16:53 +01:00
parent 52677309c5
commit 2cbc7eea95
4 changed files with 17 additions and 17 deletions
+11
View File
@@ -0,0 +1,11 @@
# Copyright (c) 2023 Leah Rowe <leah@libreboot.org>
# SPDX-License-Identifier: MIT
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=""
done
eval "${no_config}"
}