From a495fbaa8d5ff70929b28541f0d0f459529834dc Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 9 Mar 2022 19:01:20 +1000 Subject: [PATCH] Try again if dmg detach fails --- qt/bundle/mac/dmg/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/bundle/mac/dmg/build.sh b/qt/bundle/mac/dmg/build.sh index e90b0a814..184c527e2 100755 --- a/qt/bundle/mac/dmg/build.sh +++ b/qt/bundle/mac/dmg/build.sh @@ -28,7 +28,7 @@ open /tmp/Anki-rw.dmg sleep 2 open ${script_folder}/set-dmg-settings.app sleep 2 -hdiutil detach "/Volumes/Anki" +hdiutil detach "/Volumes/Anki" || (sleep 3; hdiutil detach /Volumes/Anki) sleep 1 if [ -d "/Volumes/Anki" ] then