fix: remove comments while reading YAML files

This commit is contained in:
2026-03-27 14:20:39 +01:00
parent e218f40e10
commit d4b948504c
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -8,6 +8,8 @@
* Bugfix: un-using an overlay didn't remove the directories of the overlay
in all cases.
(#1387)
* Bugfix: remove comments while reading YAML config files
(#1380)
* Bugfix: Under some conditions it could happen, that the variable
GroupDepths($group) was undefined in the function get\_load\_hints().
(#1368, #1384)
+1 -1
View File
@@ -146,7 +146,7 @@ yml::read_file(){
local -- yml_fname="$2"
local -- yml_node="$3"
yml_content=$( ${yq} -Ne e "${yml_node}|explode(.)" "${yml_fname}" 2>/dev/null ) || \
yml_content=$( ${yq} -Ne e "... comments=\"\"|${yml_node}|explode(.)" "${yml_fname}" 2>/dev/null ) || \
yml::die_read_file "${yml_fname}"
}