From 07eb195941e01429b030173192fc3645ca632667 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 22 Jan 2017 11:58:44 +0100 Subject: [PATCH] Fixed pv size (awk ) --- clone/clone | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clone/clone b/clone/clone index f45a531..f6e0617 100755 --- a/clone/clone +++ b/clone/clone @@ -85,7 +85,7 @@ step3(){ test $confirm_burn != "y" && echo "<<< aborting" && exit; # (2) Burning image into disk # - ( dd if=./original.img bs=4M | pv -s $(du -bs ./original.img) | sudo dd of=$DEV bs=4M ) \ + ( dd if=./original.img bs=4M | pv -s $(du -bs ./original.img | awk '{print $1}') | sudo dd of=$DEV bs=4M ) \ || $( echo "<<< error: dd command failed" && exit ); echo "<<< done";