Skip to content

Commit

Permalink
fix: add force to unmount in the ExtractFromDMG func πŸ‡¬πŸ‡§
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Sep 2, 2024
1 parent 6f0468d commit 7480ed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dyld/extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func ExtractFromDMG(i *info.Info, dmgPath, destPath string, arches []string, dri
defer func() {
utils.Indent(log.Debug, 2)(fmt.Sprintf("Unmounting %s", dmgPath))
if err := utils.Retry(3, 2*time.Second, func() error {
return utils.Unmount(mountPoint, false)
return utils.Unmount(mountPoint, true)
}); err != nil {
log.Errorf("failed to unmount DMG %s at %s: %v", dmgPath, mountPoint, err)
}
Expand Down

0 comments on commit 7480ed5

Please sign in to comment.