From f6ebab5702f7a07b39e2b49f1a5f2aac44e09a5d Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 19 Dec 2023 02:34:54 +0000 Subject: option.sh scan_config: clean up if/else block the code wasn't very clear. make it clearer. Signed-off-by: Leah Rowe --- include/option.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') 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}\"") -- cgit v1.2.1