summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-12-19 02:34:54 +0000
committerLeah Rowe <leah@libreboot.org>2023-12-19 02:35:55 +0000
commitf6ebab5702f7a07b39e2b49f1a5f2aac44e09a5d (patch)
treee2187a1b7050e5991e8339917c1f0787daaeef8a /include
parent3b7009aafaf1fc81ac7e1256c82dfa8a306a5d4e (diff)
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>
Diffstat (limited to 'include')
-rwxr-xr-xinclude/option.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/option.sh b/include/option.sh
index 976e604e..a764bc33 100755
--- a/include/option.sh
+++ b/include/option.sh
@@ -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}\"")