mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 08:46:24 +08:00
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
|
@ -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 New Issue
Block a user