Suppress stdout from gdisk

This commit is contained in:
Joshua Boniface 2019-06-14 13:29:35 -04:00
parent 99c0945e50
commit d330ece144
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ done
disks="$(
for disk in /dev/sd?; do
gdisk_data="$( gdisk -l ${disk} )"
gdisk_data="$( gdisk -l ${disk} 2>/dev/null )"
echo -n "${disk}"
echo -n "\t$( grep "^Model:" <<<"${gdisk_data}" | awk '{ $1=""; print $0 }' )"
echo -n "\t$( grep "^Disk ${disk}:" <<<"${gdisk_data}" | awk '{ $1=$2=""; print $0 }' )"