forked from TrueCloudLab/rclone
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:
parent
089df7d977
commit
48ab67f090
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue