Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperCuber committed Jun 25, 2022
1 parent 95a7a75 commit bed0ffd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ impl Filesystem for RealFilesystem {
owner, link, target
);
}
let real_target_path = real_path(target).context("get real path of source file")?;
if real_target_path.is_dir() {
fs::symlink_dir(real_target_path, link)
let real_source_path = real_path(target).context("get real path of source file")?;
if real_source_path.is_dir() {
fs::symlink_dir(real_source_path, link)
} else {
fs::symlink_file(real_target_path, link)
fs::symlink_file(real_source_path, link)
}
.context("create symlink")
}
Expand Down

0 comments on commit bed0ffd

Please sign in to comment.