From 29e293cc816ef8d288650eb95d461b554a2f58d6 Mon Sep 17 00:00:00 2001 From: Amin Vakil Date: Tue, 11 Jan 2022 09:53:09 +0330 Subject: [PATCH] Expanding an array without an index only gives the first element --- migrate2rocky/migrate2rocky.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrate2rocky/migrate2rocky.sh b/migrate2rocky/migrate2rocky.sh index 69a3aa8..dd0b21a 100644 --- a/migrate2rocky/migrate2rocky.sh +++ b/migrate2rocky/migrate2rocky.sh @@ -482,7 +482,7 @@ collect_system_info () { efi_disk=("$(lsblk -dno pkname "/dev/$kname")") if [[ ${efi_disk[0]} ]]; then - efi_partition=("$(<"/sys/block/$efi_disk/$kname/partition")") + efi_partition=("$(<"/sys/block/${efi_disk[0]}/$kname/partition")") else # This is likely an md-raid or other type of virtual disk, we need # to dig a little deeper to find the actual physical disks and