If statement error.

This commit is contained in:
Raphaël Numbus
2026-02-16 10:36:51 +01:00
parent ef86555e36
commit 7f95c2a6bf
+2 -2
View File
@@ -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"