From d330ece144aa2c9d9a1ea76a7310a0eb1e00dc2b Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 14 Jun 2019 13:29:35 -0400 Subject: [PATCH] Suppress stdout from gdisk --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 64c2b2d..156ee4d 100755 --- a/install.sh +++ b/install.sh @@ -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 }' )"