V8.00.000.2025.06.17
Some checks failed
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Failing after 2m1s
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:
@@ -156,12 +156,8 @@ yaml_secret() {
|
|||||||
|
|
||||||
else
|
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
|
# 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
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user