option.sh scan_config: clean up if/else block

the code wasn't very clear. make it clearer.

Signed-off-by: Leah Rowe <leah@libreboot.org>
9020vga
Leah Rowe 2023-12-19 02:34:54 +00:00
parent 3b7009aafa
commit f6ebab5702
1 changed files with 4 additions and 1 deletions

View File

@ -44,7 +44,10 @@ scan_config()
"${_fail}" "scan_config ${confdir}: Cannot concatenate files"
while read -r line ; do
set ${line} 1>/dev/null 2>/dev/null || :
[ "${1%:}" = "depend" ] && depend="${depend} ${2}" && continue
if [ "${1%:}" = "depend" ]; then
depend="${depend} ${2}"
continue
fi
eval "${1%:}=\"${2}\""
done << EOF
$(eval "awk '${awkstr}' \"${revfile}\"")