summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-10-03 12:59:35 +0100
committerLeah Rowe <leah@libreboot.org>2023-10-03 12:59:49 +0100
commit5de8eda21c61fd7e1cf6b7e4ec6c9d98dae3e365 (patch)
treeaa0099feff1f80fece4ce4efe16caa74ef905097 /include
parent334aa1f7c985e86bd6f0302dbf404927cbb8a19e (diff)
general code cleanup in shell scripts
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rwxr-xr-xinclude/option.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/option.sh b/include/option.sh
index 73a727e4..ffcc7e94 100755
--- a/include/option.sh
+++ b/include/option.sh
@@ -29,11 +29,8 @@ scan_config()
"${_fail}" "scan_config ${confdir}: Cannot concatenate files"
while read -r line ; do
set ${line} 1>/dev/null 2>/dev/null || :
- if [ "${1%:}" = "depend" ]; then
- depend="${depend} ${2}"
- else
- eval "${1%:}=\"${2}\""
- fi
+ [ "${1%:}" = "depend" ] && depend="${depend} ${2}" && continue
+ eval "${1%:}=\"${2}\""
done << EOF
$(eval "awk '${awkstr}' \"${revfile}\"")
EOF