mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-28 20:45:47 +00:00
improved mount state check
This commit is contained in:
parent
ef51c22ddf
commit
0e4de64d5e
@ -860,7 +860,8 @@ make_dmg() {
|
||||
|
||||
hdiutil create -type SPARSE -size ${DMGSIZE:-"250m"} -fs HFS+ -volname "${LyxBase}" "${DMGNAME}"
|
||||
# Unmount currently mounted disk image
|
||||
test -d /Volumes/"${LyxBase}" && umount /Volumes/"${LyxBase}"
|
||||
mount | grep "${LyxBase}" && umount /Volumes/"${LyxBase}"
|
||||
test -d /Volumes/"${LyxBase}" && rmdir /Volumes/"${LyxBase}"
|
||||
|
||||
# Mount the disk image
|
||||
hdiutil attach "${DMGNAME}.sparseimage"
|
||||
|
Loading…
Reference in New Issue
Block a user