mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-01 15:37:44 +00:00
Merge pull request #1206 from takacszoltansandor/master
Fix for unzip on OSX
This commit is contained in:
commit
bd94ec39e6
@ -80,8 +80,8 @@ gunzip=$(which unpigz 2> /dev/null || which gunzip 2> /dev/null)
|
|||||||
|
|
||||||
if [[ $DISK_IMG == *.gz ]]; then
|
if [[ $DISK_IMG == *.gz ]]; then
|
||||||
msg "decompressing the gzipped image"
|
msg "decompressing the gzipped image"
|
||||||
$gunzip -c $DISK_IMG > ${DISK_IMG::-3}
|
$gunzip -c $DISK_IMG > ${DISK_IMG%???}
|
||||||
DISK_IMG=${DISK_IMG::-3}
|
DISK_IMG=${DISK_IMG%???}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
umount ${SDCARD_DEV}* 2>/dev/null || true
|
umount ${SDCARD_DEV}* 2>/dev/null || true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user