Skip to content

Commit

Permalink
chore: adding -debug to hdiutil detach for when it fails and atte…
Browse files Browse the repository at this point in the history
…mpts a force detach (#7933)
  • Loading branch information
mmaietta authored Dec 8, 2023
1 parent a8fda9a commit 0f0e942
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/long-suits-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"dmg-builder": patch
---

adding `-debug` to `hdiutil detach` for when it fails and attempts a force detach
2 changes: 1 addition & 1 deletion packages/dmg-builder/src/dmgUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export async function detach(name: string) {
try {
await exec("hdiutil", ["detach", "-quiet", name])
} catch (e: any) {
await retry(() => exec("hdiutil", ["detach", "-force", name]), 5, 1000, 500)
await retry(() => exec("hdiutil", ["detach", "-force", "-debug", name]), 5, 1000, 500)
}
}

Expand Down

0 comments on commit 0f0e942

Please sign in to comment.