diff --git a/idd.sh b/idd.sh index fdbc80e..cbd89b9 100755 --- a/idd.sh +++ b/idd.sh @@ -57,7 +57,7 @@ case "$1" in printf "${YELLOW}Writing${NC} ${LGREEN}${filepath}${NC} to ${LGREEN}/dev/${devname}${NC}\n" printf "${LCYAN}Please wait ...${NC}\n" echo - dd if=${filepath} | pv | dd of=${DEVICEDIR}/${devname};sync + pv -tpreb ${filepath} | dd of=${DEVICEDIR}/${devname};sync printf "${LGREEN}Done writing file${NC}\n" else echo "${0}: Please install 'pv' with your package manager" @@ -100,7 +100,7 @@ case "$1" in printf "${YELLOW}Writing${NC} ${LGREEN}${filepath}${NC} to ${LGREEN}/dev/${devname}${NC}\n" printf "${LCYAN}Please wait ...${NC}\n" echo - dd if=${filepath} | pv | dd of=${DEVICEDIR}/${devname};sync + pv -tpreb ${filepath} | dd of=${DEVICEDIR}/${devname};sync printf "${LGREEN}Done writing file${NC}\n" else echo "${0}: pv command not found in /usr/bin"