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.
This commit is contained in:
nielash 2023-09-05 02:33:22 -04:00 committed by Nick Craig-Wood
parent 089df7d977
commit 48ab67f090

View File

@ -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
}