V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m0s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-09-05 17:40:24 +02:00
parent 8c7d91e7fa
commit d93c697d9d

View File

@@ -31,13 +31,12 @@ nuke_passphrase() {
# shellcheck disable=SC2312
var_nuke_rounds="$(
yq -r '
.. # recursive descent over all nodes
| select(tag == "!!map") # only mapping nodes
| to_entries[] # iterate key/value pairs
| select( (.key | tostring) | test("_nuke_rounds$") )
| .value
| select(tag != "!!map" and tag != "!!seq") # keep scalars only
| tostring # make assignment-friendly
..
| select(tag == "!!map" and has("rounds"))
| select(keys | any((. | tostring) | test("_nuke$")))
| .rounds
| select(tag != "!!map" and tag != "!!seq")
| tostring
' "${DIR_CNF}/partitioning.yaml" | head -n1
)"