Skip to content

Commit

Permalink
[fs] fix sync checking for dir existence
Browse files Browse the repository at this point in the history
Signed-off-by: Colton J. McCurdy <[email protected]>
  • Loading branch information
mccurdyc committed Jun 9, 2023
1 parent 9b0eae7 commit a20010b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub fn sync(root: PathBuf, repos: &HashMap<String, repo::Repo>, _clean_only: &bo
// TODO: use leveled logging.
println!("[DEBUG] - r: {:?}", r.get_name());

if !Path::new(r.get_name()).exists() {
if !root.join(Path::new(r.get_name())).exists() {
clone_ssh(r.get_url(), root.join(r.get_name()).as_path())?;
}
}
Expand Down

0 comments on commit a20010b

Please sign in to comment.