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