diff --git a/deploy.sh b/deploy.sh index 7df3ed4..bdea971 100644 --- a/deploy.sh +++ b/deploy.sh @@ -168,9 +168,9 @@ for DISK in \$(lsblk -x SIZE -d -n -e 7,11 -o NAME); do HDD=\$(cat /sys/block/\$DISK/queue/rotational) TRANSPORT_PROTOCOL=\$(lsblk -x SIZE -d -n -e 7,11 -o TRAN /dev/\$DISK) if [[ "\$DISK" == "nvme*" ]]; then DISK_TYPE+=("NVMe"); - elif [[ "\$TRANSPORT_PROTOCOL" == "usb" ]]; then DISK_TYPE+=("USB"); elif [[ "\$HDD" -eq 1 ]]; then DISK_TYPE+=("HDD"); elif [[ "\$HDD" -eq 0 ]]; then DISK_TYPE+=("SSD"); + elif [[ "\$TRANSPORT_PROTOCOL" == "usb" ]]; then DISK_TYPE+=("USB"); else DISK_TYPE+=("Other") fi # Disk health