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

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-09-05 17:30:19 +02:00
parent 0dc2708682
commit bd961c24f1

View File

@@ -30,13 +30,15 @@ nuke_passphrase() {
# shellcheck disable=SC2312 # shellcheck disable=SC2312
var_nuke_rounds="$( var_nuke_rounds="$(
yq -r ' yq -o=json "${DIR_CNF}/preseed.yaml" \
.. # recursive descent over all nodes | jq -r '
| select(tag == "!!map") # keep only mapping nodes .. # recursive descent
| to_entries[] # iterate key/value pairs | objects # only JSON objects (= YAML maps)
| select(.key | test("_nuke_rounds$")) # match key suffix | to_entries[] # iterate key/value pairs
| .value # output the value | select(.key | test("_nuke_rounds$"))
' "${DIR_CNF}/preseed.yaml" | head -n1 | .value
' \
| 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}"