From 2a995cd33a51f70f5885bd6608920bd5286b444a Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 25 Jan 2018 13:31:23 +0100 Subject: [PATCH] Use 'dd status=progress' new option instead of piped 'pv' to show where the copying proccess is --- clone/clone | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clone/clone b/clone/clone index 6ec69ce..2138217 100755 --- a/clone/clone +++ b/clone/clone @@ -137,12 +137,12 @@ step3(){ echo " - using gunzip"; - ( dd if=$IMAGE_FILE | pv -s $(du -bs $IMAGE_FILE | gunzip | awk '{print $1}') | sudo dd of=$DEV bs=4M ) \ + ( sudo dd if=$IMAGE_FILE of=$DEV bs=4M status=progress ) \ || echo "<<< error: dd command failed" || exit 1; else - ( dd if=$IMAGE_FILE | pv -s $(du -bs $IMAGE_FILE | awk '{print $1}') | sudo dd of=$DEV bs=4M ) \ + ( sudo dd if=$IMAGE_FILE of=$DEV bs=4M status=progress ) \ || echo "<<< error: dd command failed" || exit 1;