Skip to content

Commit

Permalink
minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
santikid committed Oct 6, 2023
1 parent 851c7c5 commit e4513b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl LinkGroup {
Err(e) if e.kind() != ErrorKind::NotFound => Some(src.file.clone()),
Ok(f) if f.is_symlink() => {
let metadata = target.read_link().unwrap();
if metadata != src.file {
if metadata != src.path() {
Some(src.file.clone())
} else {
None
Expand Down Expand Up @@ -103,6 +103,7 @@ impl LinkGroup {
.expect(format!("could not create parent tree for link {}", target.display()).as_str());
match symlink(path, target) {
Ok(_) => {}
Err(e) if e.kind() == ErrorKind::AlreadyExists => {}
Err(e) => {
println!("error: {:?}", e);
}
Expand Down

0 comments on commit e4513b2

Please sign in to comment.