Cosmetic fixes
This commit is contained in:
parent
8209860f02
commit
aaf07df79c
@ -342,7 +342,7 @@ function find_suitable_disks {
|
|||||||
candidate_disk_ids=$(find /dev/disk/by-id -regextype awk -regex '.+/(ata|nvme|scsi|mmc)-.+' -not -regex '.+-part[0-9]+$' | sort)
|
candidate_disk_ids=$(find /dev/disk/by-id -regextype awk -regex '.+/(ata|nvme|scsi|mmc)-.+' -not -regex '.+-part[0-9]+$' | sort)
|
||||||
mounted_devices="$(df | awk 'BEGIN {getline} {print $1}' | xargs -n 1 lsblk -no pkname 2> /dev/null | sort -u || true)"
|
mounted_devices="$(df | awk 'BEGIN {getline} {print $1}' | xargs -n 1 lsblk -no pkname 2> /dev/null | sort -u || true)"
|
||||||
|
|
||||||
while read -r disk_id || [[ -n "$disk_id" ]]; do
|
while read -r disk_id || [[ -n $disk_id ]]; do
|
||||||
local device_info
|
local device_info
|
||||||
local block_device_basename
|
local block_device_basename
|
||||||
|
|
||||||
@ -370,7 +370,6 @@ function find_suitable_disks {
|
|||||||
$(udevadm info --query=property "$(readlink -f "$disk_id")")
|
$(udevadm info --query=property "$(readlink -f "$disk_id")")
|
||||||
|
|
||||||
LOG
|
LOG
|
||||||
|
|
||||||
done < <(echo -n "$candidate_disk_ids")
|
done < <(echo -n "$candidate_disk_ids")
|
||||||
|
|
||||||
if [[ ${#v_suitable_disks[@]} -eq 0 ]]; then
|
if [[ ${#v_suitable_disks[@]} -eq 0 ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user