Expanding an array without an index only gives the first element
This commit is contained in:
parent
5b44278df6
commit
29e293cc81
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue