V8.00.000.2025.06.17
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:
2025-09-05 17:38:23 +02:00
parent 2c832273fa
commit 8b6f8da333

View File

@@ -31,12 +31,14 @@ nuke_passphrase() {
# shellcheck disable=SC2312 # shellcheck disable=SC2312
var_nuke_rounds="$( var_nuke_rounds="$(
yq -r ' yq -r '
.. # recursive descent over all nodes .. # recursive descent over all nodes
| select(tag == "!!map") # keep only mapping nodes | select(tag == "!!map") # only mapping nodes
| to_entries[] # iterate key/value pairs | to_entries[] # iterate key/value pairs
| select(.key | test("_nuke_rounds$")) # match key suffix | select( (.key | tostring) | test("_nuke_rounds$") )
| .value # output the value | .value
' "${DIR_CNF}/partitioning.yaml" | head -n1 | select(tag != "!!map" and tag != "!!seq") # keep scalars only
| tostring # make assignment-friendly
' "${DIR_CNF}/partitioning.yaml" | head -n1
)" )"
do_log "debug" "file_only" "0105() var_nuke_rounds: ${var_nuke_rounds}" do_log "debug" "file_only" "0105() var_nuke_rounds: ${var_nuke_rounds}"