option.sh: err if config directory is missing

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2-merge1
Leah Rowe 2024-05-18 19:51:40 +01:00 committed by Leah Rowe
parent c28166ff9e
commit a243dc2308
1 changed files with 1 additions and 0 deletions

View File

@ -121,6 +121,7 @@ EOF
check_defconfig()
{
[ -d "$1" ] || $err "Target '$1' not defined."
for x in "${1}"/config/*; do
[ -f "${x}" ] && printf "%s\n" "$x" && return 1
done