Fixed pv size (awk )
This commit is contained in:
parent
bcd5b34ef1
commit
07eb195941
|
@ -85,7 +85,7 @@ step3(){
|
||||||
test $confirm_burn != "y" && echo "<<< aborting" && exit;
|
test $confirm_burn != "y" && echo "<<< aborting" && exit;
|
||||||
|
|
||||||
# (2) Burning image into disk #
|
# (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 "<<< error: dd command failed" && exit );
|
||||||
|
|
||||||
echo "<<< done";
|
echo "<<< done";
|
||||||
|
|
Loading…
Reference in New Issue