Compare commits
2 Commits
6ab57151f9
...
c35fef8a77
| Author | SHA256 | Date | |
|---|---|---|---|
|
c35fef8a77
|
|||
|
0d8d2ca401
|
@@ -30,14 +30,8 @@ nuke_passphrase() {
|
||||
|
||||
# shellcheck disable=SC2312
|
||||
var_nuke_rounds="$(
|
||||
yq -r '
|
||||
..
|
||||
| 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
|
||||
yq -r '.recipe[]?.control.nuke_rounds // empty | tostring' \
|
||||
"${DIR_CNF}/partitioning.yaml" | head -n1
|
||||
)"
|
||||
|
||||
do_log "debug" "file_only" "0105() var_nuke_rounds: ${var_nuke_rounds}"
|
||||
|
||||
Reference in New Issue
Block a user