From 8fbfabb388ec21b3c8b2ba3e4276224743fd0768 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 3 Oct 2023 09:50:47 +0200 Subject: [PATCH] passphrase --- bash/hetzner-rescue.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bash/hetzner-rescue.sh b/bash/hetzner-rescue.sh index 1dd40d1..10557aa 100644 --- a/bash/hetzner-rescue.sh +++ b/bash/hetzner-rescue.sh @@ -138,10 +138,14 @@ function hetzner-rescue-wipe-12-10-10 { ) local members local number + local passphrase local unit='mib' + # read passphrase + echo -n 'PassPhrase: ' + read -r -s passphrase # lsblk - echo -n 'WIPE' "${device}" '/?\ OR CANCEL /!\' + echo -n 'WIPE' "${devices[@]}" '/?\ OR CANCEL /!\' read # number=0 @@ -228,10 +232,6 @@ function hetzner-rescue-wipe-12-10-10 { } function hetzner-rescue-wipe-12-10-10-extra { - # read passphrase - local passphrase - echo -n 'PassPhrase: ' - read -r -s passphrase # encrypt echo "${passphrase}" \ | cryptsetup \