Add -force to 'hdiutil detach'.. this should stop the "Resource Busy" errors we keep on getting. I should have un-lazy'd myself a long time ago, though if I knew the fix this was this simple I would have.. guess I'm too used to every fix on OS X being long and convoluted. (argh)

Originally committed to SVN as r3401.
This commit is contained in:
Amar Takhar 2009-08-13 19:35:42 +00:00
parent fd65666eb2
commit 7634ce2d4e

View file

@ -64,7 +64,7 @@ echo "--- Generating /Volumes/${PKG_NAME_VOLUME}/.DS_Store ----"
echo
echo "---- Detaching ----"
/usr/bin/hdiutil detach "${DEV_NAME}" || exit $?
/usr/bin/hdiutil detach "${DEV_NAME}" -force || exit $?
echo
echo "---- Compressing ----"