Only list disk devices for partitioning

This commit is contained in:
Manuel Thalmann 2023-04-01 02:49:48 +02:00
parent 36c3844526
commit 675070e617

View file

@ -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)";