From c75a31a8b852a692e81fdcbb8d5a2429f7d9f1cc Mon Sep 17 00:00:00 2001 From: laraPPr Date: Wed, 10 Jun 2026 17:57:57 +0200 Subject: [PATCH] Make cfg_files.sh more robut in bash environment --- scripts/cfg_files.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/cfg_files.sh b/scripts/cfg_files.sh index 57ea2f7c..1bdcffdb 100644 --- a/scripts/cfg_files.sh +++ b/scripts/cfg_files.sh @@ -39,13 +39,13 @@ function cfg_load { local cur_val="" IFS= while read -r line; do - new_section=$(cfg_get_section $line) + new_section=$(cfg_get_section "${line}") # got a new section if [[ -n "$new_section" ]]; then cur_section=$new_section # not a section, try a key value else - val=$(cfg_get_key_value $line) + val=$(cfg_get_key_value "${line}") # trim leading and trailing spaces as well cur_key=$(echo $val | cut -f1 -d'=' | cfg_trim_spaces) cur_val=$(echo $val | cut -f2 -d'=' | cfg_trim_spaces)