mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
update/blobs/*: unify checking of defconfig files
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Executable
+11
@@ -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}"
|
||||
}
|
||||
Reference in New Issue
Block a user