V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 55s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 55s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -32,10 +32,12 @@ nuke_passphrase() {
|
||||
var_nuke_rounds="$(
|
||||
yq -r '
|
||||
.. # recursive descent over all nodes
|
||||
| select(tag == "!!map") # keep only mapping nodes
|
||||
| select(tag == "!!map") # only mapping nodes
|
||||
| to_entries[] # iterate key/value pairs
|
||||
| select(.key | test("_nuke_rounds$")) # match key suffix
|
||||
| .value # output the value
|
||||
| select( (.key | tostring) | test("_nuke_rounds$") )
|
||||
| .value
|
||||
| select(tag != "!!map" and tag != "!!seq") # keep scalars only
|
||||
| tostring # make assignment-friendly
|
||||
' "${DIR_CNF}/partitioning.yaml" | head -n1
|
||||
)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user