Compare commits
2 Commits
3521edb436
...
f3340c5f5e
| Author | SHA256 | Date | |
|---|---|---|---|
|
f3340c5f5e
|
|||
|
2e57644a6d
|
@@ -162,10 +162,8 @@ yaml_secret() {
|
|||||||
# -0 : NUL between *each* result
|
# -0 : NUL between *each* result
|
||||||
# shellcheck disable=SC2016,SC2312
|
# shellcheck disable=SC2016,SC2312
|
||||||
exec {__pipe_fd}< <(
|
exec {__pipe_fd}< <(
|
||||||
yq -r -N -0 'paths as $p
|
yq -r -N -0 'leaf_paths as $p
|
||||||
| select( ($p[0]=="secrets") and ($p[-1]=="value")
|
| 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)
|
| ($p[0:-1] | join(".")), ((getpath($p)//"") | tostring)
|
||||||
' -- "${secrets_yaml}"
|
' -- "${secrets_yaml}"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user