From 75bba26eb4d3a27d0e1996856f3ce921e8be97a1 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 19 Apr 2023 05:06:50 +0200 Subject: [PATCH] Hide dd output --- run/disk.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run/disk.sh b/run/disk.sh index 86b9c08..4d6f53b 100644 --- a/run/disk.sh +++ b/run/disk.sh @@ -48,7 +48,7 @@ if [ -f "${DATA}" ]; then if [ "$ALLOCATE" = "Z" ]; then GB=$(( (REQ + 1073741823)/1073741824 )) - echo "INFO: Writing ${GB} GB of zeroes, please wait.." + echo "INFO: Writing ${GB} GB of zeroes, please wait.." > /dev/null dd if=/dev/zero of="${DATA}" seek="${OLD_SIZE}" count="${REQ}" bs=1M iflag=count_bytes oflag=seek_bytes @@ -94,7 +94,7 @@ if [ ! -f "${DATA}" ]; then echo "INFO: Writing ${DISK_SIZE} of zeroes, please wait.." - dd if=/dev/zero of="${DATA}" count="${DATA_SIZE}" bs=1M iflag=count_bytes + dd if=/dev/zero of="${DATA}" count="${DATA_SIZE}" bs=1M iflag=count_bytes > /dev/null else