Fixed pv size (awk )

This commit is contained in:
xdrm-brackets 2017-01-22 11:58:44 +01:00
parent bcd5b34ef1
commit 07eb195941
1 changed files with 1 additions and 1 deletions

View File

@ -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";