Suppress stdout from gdisk

This commit is contained in:
Joshua Boniface 2023-09-01 15:41:53 -04:00
parent 898fb28cb8
commit 37190ba7e7
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 }' )"