Merge pull request #1206 from takacszoltansandor/master

Fix for unzip on OSX
This commit is contained in:
Calin Crisan 2017-10-26 10:02:02 +03:00 committed by GitHub
commit bd94ec39e6

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