commit 0e4de64d5e30260b5526a2999602762e923c9d25
Author: Stephan Witt <[email protected]>
Date: Fri Oct 24 18:14:42 2014 +0200
improved mount state check
diff --git a/development/LyX-Mac-binary-release.sh
b/development/LyX-Mac-binary-release.sh
index 4fb7547..958d801 100644
--- a/development/LyX-Mac-binary-release.sh
+++ b/development/LyX-Mac-binary-release.sh
@@ -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"