37
37
echo "$disk is a block device"
39
39
#Add a check for warnings
43
43
echo "Warning found in parted output:"
49
49
# Regex changed to better handle when $disk appears more than once
50
50
# in parted output (such as in warning messages or not caught in the