Skip to content

Commit e4513b2

Browse files
committed
minor bug
1 parent 851c7c5 commit e4513b2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/link.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl LinkGroup {
6868
Err(e) if e.kind() != ErrorKind::NotFound => Some(src.file.clone()),
6969
Ok(f) if f.is_symlink() => {
7070
let metadata = target.read_link().unwrap();
71-
if metadata != src.file {
71+
if metadata != src.path() {
7272
Some(src.file.clone())
7373
} else {
7474
None
@@ -103,6 +103,7 @@ impl LinkGroup {
103103
.expect(format!("could not create parent tree for link {}", target.display()).as_str());
104104
match symlink(path, target) {
105105
Ok(_) => {}
106+
Err(e) if e.kind() == ErrorKind::AlreadyExists => {}
106107
Err(e) => {
107108
println!("error: {:?}", e);
108109
}

0 commit comments

Comments
 (0)