If statement error.
This commit is contained in:
@@ -926,7 +926,7 @@ postrun_action() {
|
||||
Do you want to enable automatic disk decryption on boot ?"
|
||||
|
||||
if gum confirm "➡️ I understand, 'yes' to proceed."; then
|
||||
ssh_to_host 'bash -s' << EOF
|
||||
sshpass -p "${REMOTE_PASS}" ssh -i "final-nix-config/home/numbus-admin/.ssh/id_ed25519" "${TARGET_USER}@${TARGET_HOST}" 'bash -s' << EOF
|
||||
echo "Enrolling boot disk key to TPM..."
|
||||
|
||||
BOOT_DISKS_ID=(${BOOT_DISKS_ID[@]})
|
||||
@@ -934,7 +934,7 @@ DISK_PATH=""
|
||||
j=1
|
||||
|
||||
for i in \${!BOOT_DISKS_ID[@]}; do
|
||||
if [[ echo "\${BOOT_DISKS_ID[\${i}]}" | grep -iq "nvme" ]]; then
|
||||
if echo "\${BOOT_DISKS_ID[\${i}]}" | grep -iq "nvme"; then
|
||||
DISK_PATH="/dev/\${BOOT_DISKS_ID[\${i}]}p2"
|
||||
else
|
||||
DISK_PATH="/dev/\${BOOT_DISKS_ID[\${i}]}2"
|
||||
|
||||
Reference in New Issue
Block a user