diff --git a/scripts/Scripts/choose-disk.sh b/scripts/Scripts/choose-disk.sh index 8bbc4aaf..402cf26d 100755 --- a/scripts/Scripts/choose-disk.sh +++ b/scripts/Scripts/choose-disk.sh @@ -10,7 +10,13 @@ function chooseDisk() { while read disk do - disks+=("$disk"); + local -a diskInfo; + diskInfo=($disk); + + if [ "${diskInfo[2]}" == "TYPE" ] || [ "${diskInfo[2]}" == "disk" ] + then + disks+=("$disk"); + fi; done < <(lsblk -do NAME,SIZE,TYPE); diskCount="$(expr "${#disks[@]}" - 1)";