Skip to content
This repository was archived by the owner on Oct 21, 2020. It is now read-only.

Commit 7938afc

Browse files
committed
fix(appdmg): patch to use err.code over err.exitCode
1 parent 3e0cb2b commit 7938afc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

patches/appdmg+0.5.2.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/node_modules/appdmg/lib/hdiutil.js b/node_modules/appdmg/lib/hdiutil.js
2+
index e712705..151209b 100644
3+
--- a/node_modules/appdmg/lib/hdiutil.js
4+
+++ b/node_modules/appdmg/lib/hdiutil.js
5+
@@ -64,7 +64,7 @@ exports.detach = function (path, cb) {
6+
const args = ['detach', path]
7+
8+
util.sh('hdiutil', args, function (err) {
9+
- if (err && err.exitCode === 16 && /Resource busy/.test(err.stderr)) {
10+
+ if (err && err.code === 16 && /Resource busy/.test(err.stderr)) {
11+
setTimeout(function () {
12+
util.sh('hdiutil', args, (err) => cb(err))
13+
}, 1000)

0 commit comments

Comments
 (0)