idd.sh: output that sync command is running
This commit is contained in:
parent
216c8232db
commit
3b88baf374
10
idd.sh
10
idd.sh
@ -127,7 +127,10 @@ case "$1" in
|
||||
echo
|
||||
printf "${LCYAN}Please wait ...${NC}\n"
|
||||
echo
|
||||
pv -tpreb ${filepath} | dd bs=4M of=${DEVICEDIR}/${devname};sync
|
||||
pv -tpreb ${filepath} | dd bs=4M of=${DEVICEDIR}/${devname}
|
||||
echo
|
||||
printf "${YELLOW}Syncing buffers...${NC}\n";sync
|
||||
echo
|
||||
printf "${LGREEN}Done writing file${NC}\n"
|
||||
else
|
||||
echo "${0}: Please install 'pv' with your package manager"
|
||||
@ -177,7 +180,10 @@ case "$1" in
|
||||
echo
|
||||
printf "${LCYAN}Please wait ...${NC}\n"
|
||||
echo
|
||||
pv -tpreb ${filepath} | dd bs=4M of=${DEVICEDIR}/${devname};sync
|
||||
pv -tpreb ${filepath} | dd bs=4M of=${DEVICEDIR}/${devname}
|
||||
echo
|
||||
printf "${YELLOW}Syncing buffers...${NC}\n";sync
|
||||
echo
|
||||
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