Skip to content

Commit

Permalink
bisync: fix dryRun rc parameter being ignored
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nielash authored and ncw committed Sep 5, 2023
1 parent 089df7d commit 48ab67f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/bisync/rc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 48ab67f

Please sign in to comment.