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

Commit

Permalink
fix(appdmg): patch to use err.code over err.exitCode
Browse files Browse the repository at this point in the history
  • Loading branch information
devinus committed Jan 28, 2019
1 parent 3e0cb2b commit 7938afc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions patches/appdmg+0.5.2.patch
Original file line number Diff line number Diff line change
@@ -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.