Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo.moya@xamarin.com>2019-06-06 15:24:25 +0300
committerGitHub <noreply@github.com>2019-06-06 15:24:25 +0300
commit8d19632c4d0305ffc65380fd6fab713282321a07 (patch)
treea64c1f8c0d1c016223c53affa082ac1eb2789949 /main
parent41e6fb746da8b651884c91dedaeb60acebe20fab (diff)
parent66e31f7659e0a10d181f2015a81b062255c48cd8 (diff)
Merge pull request #7809 from mono/pr-retry-unmount-on-mojave-bots
[Mac] Retry unmounting because of an issue in the Mojave bots
Diffstat (limited to 'main')
-rwxr-xr-xmain/build/MacOSX/make-dmg-bundle.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/main/build/MacOSX/make-dmg-bundle.sh b/main/build/MacOSX/make-dmg-bundle.sh
index 1170152801..eac33e3cec 100755
--- a/main/build/MacOSX/make-dmg-bundle.sh
+++ b/main/build/MacOSX/make-dmg-bundle.sh
@@ -75,7 +75,14 @@ fi
SetFile -a C "$MOUNT_POINT"
echo "Detaching from disk image..."
-hdiutil detach "$MOUNT_POINT" -quiet || exit $?
+for n in `seq 1 5`
+do
+ hdiutil detach "$MOUNT_POINT" && break
+ if [ $n = 5 ]; then
+ hdiutil detach -force "$MOUNT_POINT"
+ exit $?
+ fi
+done
mv "$DMG_FILE" "$DMG_FILE.master"