Use 'dd status=progress' new option instead of piped 'pv' to show where the copying proccess is

This commit is contained in:
xdrm-brackets 2018-01-25 13:31:23 +01:00
parent 09c589553e
commit 2a995cd33a
1 changed files with 2 additions and 2 deletions

View File

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