diff options
author | Rodrigo Moya <rodrigo.moya@xamarin.com> | 2019-06-05 21:12:53 +0300 |
---|---|---|
committer | Rodrigo Moya <rodrigo.moya@xamarin.com> | 2019-06-06 12:15:45 +0300 |
commit | 8a319dec37f6a8d880d49fa7a665bfb435623652 (patch) | |
tree | ef26fbb84d797b5ab1853afc9776b2681d965df0 /main/build | |
parent | ed2042ac3e4e5ce37b80e9a08a666c4327f40a5b (diff) |
[Mac] Retry unmounting because of an issue in the Mojave bots
With the move to Xcode 10.2, we need to build on Mojave bots, and there's
a bug (https://github.com/al45tair/dmgbuild/issues/10) that makes unmounting
time out on the bots, which is fixed by just retrying :/
Diffstat (limited to 'main/build')
-rwxr-xr-x | main/build/MacOSX/make-dmg-bundle.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/main/build/MacOSX/make-dmg-bundle.sh b/main/build/MacOSX/make-dmg-bundle.sh index 1170152801..1b90426365 100755 --- a/main/build/MacOSX/make-dmg-bundle.sh +++ b/main/build/MacOSX/make-dmg-bundle.sh @@ -75,7 +75,13 @@ 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 + exit $? + fi +done mv "$DMG_FILE" "$DMG_FILE.master" |