From 075781f54f23b27a9594293ec3ccaa538285ed0c Mon Sep 17 00:00:00 2001 From: Michal Date: Mon, 25 Jul 2022 10:57:27 +0100 Subject: [PATCH] fixed diff issue --- src/operations/clone.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operations/clone.rs b/src/operations/clone.rs index 3aa1477..78f8c72 100644 --- a/src/operations/clone.rs +++ b/src/operations/clone.rs @@ -29,7 +29,7 @@ pub fn clone(verbose: bool) { let mut repo_diff = vec![]; for repo in repos { let name = &repo.name; - if !dirs.contains(&format!("./{}", name)) || !dirs.contains(&format!(".\\{}", name)) { + if !dirs.contains(&format!("./{}", name)) && !dirs.contains(&format!(".\\{}", name)) { repo_diff.push(repo); } }