mirror of
https://github.com/rocky-linux/rocky-tools.git
synced 2024-06-02 19:00:16 +00:00
Ignore changing variable from array to usage
This commit is contained in:
parent
f1fa925a74
commit
1eb5d3f754
|
@ -480,9 +480,12 @@ collect_system_info () {
|
||||||
--noheadings) ||
|
--noheadings) ||
|
||||||
exit_message "Can't find EFI mount. No EFI boot detected."
|
exit_message "Can't find EFI mount. No EFI boot detected."
|
||||||
kname=$(lsblk -dno kname "$efi_mount")
|
kname=$(lsblk -dno kname "$efi_mount")
|
||||||
|
# shellcheck disable=SC2178
|
||||||
efi_disk=$(lsblk -dno pkname "/dev/$kname")
|
efi_disk=$(lsblk -dno pkname "/dev/$kname")
|
||||||
|
|
||||||
|
# shellcheck disable=SC2128
|
||||||
if [[ $efi_disk ]]; then
|
if [[ $efi_disk ]]; then
|
||||||
|
# shellcheck disable=SC2178
|
||||||
efi_partition=$(<"/sys/block/$efi_disk/$kname/partition")
|
efi_partition=$(<"/sys/block/$efi_disk/$kname/partition")
|
||||||
else
|
else
|
||||||
# This is likely an md-raid or other type of virtual disk, we need
|
# This is likely an md-raid or other type of virtual disk, we need
|
||||||
|
|
Loading…
Reference in New Issue
Block a user