Suppress stdout from gdisk
This commit is contained in:
parent
99c0945e50
commit
d330ece144
|
@ -34,7 +34,7 @@ done
|
||||||
|
|
||||||
disks="$(
|
disks="$(
|
||||||
for disk in /dev/sd?; do
|
for disk in /dev/sd?; do
|
||||||
gdisk_data="$( gdisk -l ${disk} )"
|
gdisk_data="$( gdisk -l ${disk} 2>/dev/null )"
|
||||||
echo -n "${disk}"
|
echo -n "${disk}"
|
||||||
echo -n "\t$( grep "^Model:" <<<"${gdisk_data}" | awk '{ $1=""; print $0 }' )"
|
echo -n "\t$( grep "^Model:" <<<"${gdisk_data}" | awk '{ $1=""; print $0 }' )"
|
||||||
echo -n "\t$( grep "^Disk ${disk}:" <<<"${gdisk_data}" | awk '{ $1=$2=""; print $0 }' )"
|
echo -n "\t$( grep "^Disk ${disk}:" <<<"${gdisk_data}" | awk '{ $1=$2=""; print $0 }' )"
|
||||||
|
|
Loading…
Reference in New Issue