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
parent
3b7009aafa
commit
f6ebab5702
|
@ -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}\"")
|
||||
|
|
Loading…
Reference in New Issue