coliru

A minimal, flexible, dotfile installer
git clone https://git.ashermorgan.net/coliru/
Log | Files | Refs | README

commit cc2628151c8d9850b3242994ee9d98425e499999
parent 864b32cdb374b8d0f3dad687b3da72960d2f336b
Author: Asher Morgan <59518073+ashermorgan@users.noreply.github.com>
Date:   Fri, 21 Jun 2024 19:19:32 -0700

Fix bug with --dry-run flag

Diffstat:
Msrc/core.rs | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/core.rs b/src/core.rs @@ -46,7 +46,7 @@ fn execute_copies(copies: &[CopyLinkOptions], dry_run: bool) { print!(" Copy {} to {}", copy.src, copy.dst); if dry_run { println!(" (skipped due to --dry-run)"); - return; + continue; } println!(""); @@ -62,7 +62,7 @@ fn execute_links(links: &[CopyLinkOptions], dry_run: bool) { print!(" Link {} to {}", link.src, link.dst); if dry_run { println!(" (skipped due to --dry-run)"); - return; + continue; } println!(""); @@ -78,7 +78,7 @@ fn execute_runs(runs: &[RunOptions], dry_run: bool) { print!(" Run {}", run.src); if dry_run { println!(" (skipped due to --dry-run)"); - return; + continue; } println!("");