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:
@@ -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}"
|
||||||
|
|||||||
Reference in New Issue
Block a user