lbmk/include/defconfig.sh

12 lines
268 B
Bash
Executable File

# 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}"
}