From 3b88baf374d6f50fdf06bbf640ba31b3fb5e9d63 Mon Sep 17 00:00:00 2001 From: mollusk Date: Thu, 11 May 2017 16:24:03 -0700 Subject: [PATCH] idd.sh: output that sync command is running --- idd.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/idd.sh b/idd.sh index cbf8795..0015042 100755 --- a/idd.sh +++ b/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"