mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-07-06 13:50:51 +02:00
fix: remove comments while reading YAML files
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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}"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user