better progress bar for idd
This commit is contained in:
parent
19b1bf3d21
commit
58ea883d03
4
idd.sh
4
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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user