We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de1b4bb + c75a31a commit 4eeb0deCopy full SHA for 4eeb0de
1 file changed
scripts/cfg_files.sh
@@ -39,13 +39,13 @@ function cfg_load {
39
local cur_val=""
40
IFS=
41
while read -r line; do
42
- new_section=$(cfg_get_section $line)
+ new_section=$(cfg_get_section "${line}")
43
# got a new section
44
if [[ -n "$new_section" ]]; then
45
cur_section=$new_section
46
# not a section, try a key value
47
else
48
- val=$(cfg_get_key_value $line)
+ val=$(cfg_get_key_value "${line}")
49
# trim leading and trailing spaces as well
50
cur_key=$(echo $val | cut -f1 -d'=' | cfg_trim_spaces)
51
cur_val=$(echo $val | cut -f2 -d'=' | cfg_trim_spaces)
0 commit comments