Skip to content
Permalink
Browse files

fix(appdmg): patch to use err.code over err.exitCode

  • Loading branch information...
devinus committed Jan 28, 2019
1 parent 3e0cb2b commit 7938afcd63b3a0d749e48dfaf0b0c397c4a85d34
Showing with 13 additions and 0 deletions.
  1. +13 −0 patches/appdmg+0.5.2.patch
@@ -0,0 +1,13 @@
diff --git a/node_modules/appdmg/lib/hdiutil.js b/node_modules/appdmg/lib/hdiutil.js
index e712705..151209b 100644
--- a/node_modules/appdmg/lib/hdiutil.js
+++ b/node_modules/appdmg/lib/hdiutil.js
@@ -64,7 +64,7 @@ exports.detach = function (path, cb) {
const args = ['detach', path]

util.sh('hdiutil', args, function (err) {
- if (err && err.exitCode === 16 && /Resource busy/.test(err.stderr)) {
+ if (err && err.code === 16 && /Resource busy/.test(err.stderr)) {
setTimeout(function () {
util.sh('hdiutil', args, (err) => cb(err))
}, 1000)

0 comments on commit 7938afc

Please sign in to comment.
You can’t perform that action at this time.