X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=development%2FLyX-Mac-binary-release.sh;h=958d801aefc378781ac1ab135217e872e8d9f4b3;hb=07683c1f0da587d1c00e377e29fda2c78540848f;hp=4fb754740b99782739af5825b5597228b8466767;hpb=4a04328be2be680991644d56cef56efbb077e01f;p=lyx.git diff --git a/development/LyX-Mac-binary-release.sh b/development/LyX-Mac-binary-release.sh index 4fb754740b..958d801aef 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"