From 58ea883d0376934f259ca5af860447a2772540c4 Mon Sep 17 00:00:00 2001 From: mollusk Date: Tue, 3 May 2016 22:03:33 -0700 Subject: [PATCH] better progress bar for idd --- idd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"