mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-11-05 22:23:20 +01:00
fix: remove comments while reading YAML files
This commit is contained in:
1 parent
e218f40e10
commit
d4b948504c
2 files changed
+3
-1
No files matched your search
@@ -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