diff options
author | Eric Hameleers <alien@slackware.com> | 2016-05-06 02:09:55 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2016-05-06 02:09:55 +0200 |
commit | 212d9c31347177662e2585af0b3f9c5a93bc5e75 (patch) | |
tree | ad35f75540f0ee1e791104d944b8e6ee1670894c /iso2usb.sh | |
parent | 35e4c91e2dfb90d3aa7111cf4e0026f020e061f4 (diff) | |
download | liveslak-212d9c31347177662e2585af0b3f9c5a93bc5e75.tar.gz liveslak-212d9c31347177662e2585af0b3f9c5a93bc5e75.tar.xz |
iso2usb.sh: script should be able to run on older OS-es too.
Diffstat (limited to 'iso2usb.sh')
-rw-r--r-- | iso2usb.sh | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -506,11 +506,15 @@ fi # Copy the ISO content into the USB Linux partition: echo "--- Copying files from ISO to USB... takes some time." if [ $VERBOSE -eq 1 ]; then + # Show verbose progress: rsync -av --progress --exclude=EFI ${ISOMNT}/* ${USBMNT}/ -else - # Display some progress because this can take a _long_ time: +elif [ -z "$(rsync --info=progress2 2>&1 |grep "unknown option")" ]; then + # Use recent rsync to display some progress because this can take _long_ : rsync -a --no-inc-recursive --info=progress2 --exclude=EFI \ ${ISOMNT}/* ${USBMNT}/ +else + # Remain silent if we have an older rsync: + rsync -a --exclude=EFI ${ISOMNT}/* ${USBMNT}/ fi # Write down the version of the ISO image: |