From 48ab67f090fd630c3ed9cc66d6fe83eca769ce12 Mon Sep 17 00:00:00 2001 From: nielash Date: Tue, 5 Sep 2023 02:33:22 -0400 Subject: [PATCH] bisync: fix dryRun rc parameter being ignored Before this change, bisync ignored the dryRun parameter (only when specified via the rc.) This change fixes the issue, so that the dryRun rc parameter is equivalent to the --dry-run flag. --- cmd/bisync/rc.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/bisync/rc.go b/cmd/bisync/rc.go index 36c028877..550be5e38 100644 --- a/cmd/bisync/rc.go +++ b/cmd/bisync/rc.go @@ -26,6 +26,7 @@ func rcBisync(ctx context.Context, in rc.Params) (out rc.Params, err error) { if dryRun, err := in.GetBool("dryRun"); err == nil { ci.DryRun = dryRun + opt.DryRun = dryRun } else if rc.NotErrParamNotFound(err) { return nil, err }