Compare commits

...

2 Commits

Author SHA256 Message Date
f3340c5f5e Merge remote-tracking branch 'origin/master'
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 2m3s
2025-10-24 22:14:34 +01:00
2e57644a6d V8.00.000.2025.06.17
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
2025-10-24 22:14:25 +01:00

View File

@@ -162,10 +162,8 @@ yaml_secret() {
# -0 : NUL between *each* result
# shellcheck disable=SC2016,SC2312
exec {__pipe_fd}< <(
yq -r -N -0 'paths as $p
| select( ($p[0]=="secrets") and ($p[-1]=="value")
and ((getpath($p)|type) != "object")
and ((getpath($p)|type) != "array") )
yq -r -N -0 'leaf_paths as $p
| select($p[0]=="secrets" and $p[-1]=="value")
| ($p[0:-1] | join(".")), ((getpath($p)//"") | tostring)
' -- "${secrets_yaml}"
)