We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 851c7c5 commit e4513b2Copy full SHA for e4513b2
1 file changed
src/link.rs
@@ -68,7 +68,7 @@ impl LinkGroup {
68
Err(e) if e.kind() != ErrorKind::NotFound => Some(src.file.clone()),
69
Ok(f) if f.is_symlink() => {
70
let metadata = target.read_link().unwrap();
71
- if metadata != src.file {
+ if metadata != src.path() {
72
Some(src.file.clone())
73
} else {
74
None
@@ -103,6 +103,7 @@ impl LinkGroup {
103
.expect(format!("could not create parent tree for link {}", target.display()).as_str());
104
match symlink(path, target) {
105
Ok(_) => {}
106
+ Err(e) if e.kind() == ErrorKind::AlreadyExists => {}
107
Err(e) => {
108
println!("error: {:?}", e);
109
}
0 commit comments