diff --git a/lib/hdiutil.js b/lib/hdiutil.js
index <HASH>..<HASH> 100644
--- a/lib/hdiutil.js
+++ b/lib/hdiutil.js
@@ -66,7 +66,7 @@ exports.detach = function (path, cb) {
   let attempts = 0
   function attemptDetach (err) {
     attempts += 1
-    if (err && (err.exitCode === 16 || err.code === 16) && /Resource busy/.test(err.stderr) && attempts <= 5) {
+    if (err && (err.exitCode === 16 || err.code === 16) && attempts <= 5) {
       setTimeout(function () {
         util.sh('hdiutil', args, attemptDetach)
       }, 1000 * Math.pow(2, attempts - 1))
🐛 Don't test "Resource busy" when detaching (#<I>)

1. We have EBUSY (code <I>)



<URL>