Hide dd output

This commit is contained in:
Kroese 2023-04-19 05:06:50 +02:00 committed by GitHub
parent b3a08aa318
commit 75bba26eb4

View File

@ -48,7 +48,7 @@ if [ -f "${DATA}" ]; then
if [ "$ALLOCATE" = "Z" ]; then if [ "$ALLOCATE" = "Z" ]; then
GB=$(( (REQ + 1073741823)/1073741824 )) 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 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.." 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 else