fix macos clinet unmounting

This commit is contained in:
Ultradesu
2026-03-11 10:42:19 +00:00
parent c54af23845
commit 64b59ba72d

View File

@@ -116,7 +116,12 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
}
// Unmount
let _ = Command::new("umount").arg(mount_point_umount.to_string_lossy().as_ref()).status();
let _ = Command::new("diskutil")
.arg("unmount")
.arg("force")
.arg(mount_point_umount.to_string_lossy().as_ref())
.status();
handle.abort();
println!("Unmounted successfully.");
});