fix macos clinet unmounting
This commit is contained in:
@@ -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.");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user