V8.00.000.2025.06.17
Some checks failed
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Failing after 2m1s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-10-26 10:27:49 +00:00
parent 09e808fb85
commit 5eadfa9b00

View File

@@ -156,12 +156,8 @@ yaml_secret() {
else
### One-pass producer: emits '<path>\0<value>\0' for each 'secrets.*.value'
# -r : raw scalars
# -N : no "---" doc separators
# -0 : NUL between *each* result
# shellcheck disable=SC2016,SC2312
exec {__pipe_fd}< <( yq -r -N -0 'path(..) as $p | select( $p[0] == "secrets" and $p[-1] == "value" and ((getpath($p) | type) != "object") and ((getpath($p) | type) != "array") ) | ($p[0:-1] | join(".")), ((getpath($p) // "") | tostring)' -- "${secrets_yaml}" )
exec {__pipe_fd}< <( yq -r -N -0 'path(..) as $p | select($p[0]=="secrets" and $p[-1]=="value") | ($p[0:-1]|join("."))' -- "${secrets_yaml}" )
fi