From afc125bf832285036141a004b679d8cfc6cf66ae Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:41:57 -0400 Subject: [PATCH] Output DD results --- install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index d10dc7a..5a3beec 100755 --- a/install.sh +++ b/install.sh @@ -518,10 +518,11 @@ blockcheck() { echo -n "Checking if block device '${target_disk}' is already wiped... " if ! cmp --silent --bytes ${blockdev_size_bytes} /dev/zero ${target_disk}; then echo "false." - echo -n "Wiping block device '${target_disk}' (${count} blocks of ${size} bytes)... " - dd if=/dev/zero of=${target_disk} bs=${size} count=${count} oflag=direct &>/dev/null + echo "Wiping block device '${target_disk}' (${count} blocks of ${size} bytes)..." + dd if=/dev/zero of=${target_disk} bs=${size} count=${count} oflag=direct status=progress + else + echo "done." fi - echo "done." } blockcheck