From a20010b68eb30cb1c5a4aadd533c1d5d9710796c Mon Sep 17 00:00:00 2001 From: "Colton J. McCurdy" Date: Thu, 8 Jun 2023 21:19:34 -0400 Subject: [PATCH] [fs] fix sync checking for dir existence Signed-off-by: Colton J. McCurdy --- src/fs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fs.rs b/src/fs.rs index eef532f..5d0d1e6 100644 --- a/src/fs.rs +++ b/src/fs.rs @@ -39,7 +39,7 @@ pub fn sync(root: PathBuf, repos: &HashMap, _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())?; } }