From dd4de2a39717931f491787bd7a4d884e20ce7938 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Thu, 5 May 2016 22:31:13 +0200 Subject: iso2usb.sh: show some progress info when copying files from ISO to USB. --- iso2usb.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'iso2usb.sh') diff --git a/iso2usb.sh b/iso2usb.sh index ca4bf4e..211fb49 100644 --- a/iso2usb.sh +++ b/iso2usb.sh @@ -336,7 +336,6 @@ while [ ! -z "$1" ]; do ;; -v|--verbose) VERBOSE=1 - RVERBOSE=" -v --progress " shift ;; -w|--wait) @@ -506,7 +505,13 @@ fi # Copy the ISO content into the USB Linux partition: echo "--- Copying files from ISO to USB... takes some time." -rsync -a ${RVERBOSE} --exclude=EFI ${ISOMNT}/* ${USBMNT}/ +if [ $VERBOSE -eq 1 ]; then + rsync -av --progress --exclude=EFI ${ISOMNT}/* ${USBMNT}/ +else + # Display some progress because this can take a _long_ time: + rsync -a --no-inc-recursive --info=progress2 --exclude=EFI \ + ${ISOMNT}/* ${USBMNT}/ +fi # Write down the version of the ISO image: VERSION=$(iso-info ${SLISO} |grep Application |cut -d: -f2- 2>/dev/null) -- cgit v1.2.3