Merge branch 'master' into dev

This commit is contained in:
Calin Crisan 2017-10-26 10:03:27 +03:00
commit 43efff0f4f

View File

@ -80,8 +80,8 @@ gunzip=$(which unpigz 2> /dev/null || which gunzip 2> /dev/null)
if [[ $DISK_IMG == *.gz ]]; then
msg "decompressing the gzipped image"
$gunzip -c $DISK_IMG > ${DISK_IMG::-3}
DISK_IMG=${DISK_IMG::-3}
$gunzip -c $DISK_IMG > ${DISK_IMG%???}
DISK_IMG=${DISK_IMG%???}
fi
umount ${SDCARD_DEV}* 2>/dev/null || true