From 38db0853c51c475ce73fd255459551f0fcd02e12 Mon Sep 17 00:00:00 2001 From: diogo464 Date: Thu, 4 May 2023 11:32:56 +0100 Subject: fix: invalid early return --- src/dotup/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dotup/mod.rs b/src/dotup/mod.rs index d62047d..d620295 100644 --- a/src/dotup/mod.rs +++ b/src/dotup/mod.rs @@ -182,11 +182,11 @@ pub fn install(dotup: &Dotup, params: &InstallParams, group: &str) -> Result<()> // Early return if the symlink already points to the correct source if metadata.is_symlink() && fs_symlink_points_to(&target, &source)? { - return Ok(()); + continue; } if !prompt_overwrite(params, &target)? { - return Ok(()); + continue; } fs_remove(&target)?; -- cgit