Skip to content

Commit 0f0e942

Browse files
authored
chore: adding -debug to hdiutil detach for when it fails and attempts a force detach (#7933)
1 parent a8fda9a commit 0f0e942

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/long-suits-act.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"dmg-builder": patch
3+
---
4+
5+
adding `-debug` to `hdiutil detach` for when it fails and attempts a force detach

packages/dmg-builder/src/dmgUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export async function detach(name: string) {
3737
try {
3838
await exec("hdiutil", ["detach", "-quiet", name])
3939
} catch (e: any) {
40-
await retry(() => exec("hdiutil", ["detach", "-force", name]), 5, 1000, 500)
40+
await retry(() => exec("hdiutil", ["detach", "-force", "-debug", name]), 5, 1000, 500)
4141
}
4242
}
4343

0 commit comments

Comments
 (0)