mirror of
https://github.com/rclone/rclone.git
synced 2026-01-03 17:13:18 +00:00
bisync: fix data races on tests
This commit is contained in:
@@ -87,7 +87,9 @@ func Bisync(ctx context.Context, fs1, fs2 fs.Fs, optArg *Options) (err error) {
|
||||
opt.OrigBackupDir = ci.BackupDir
|
||||
|
||||
if ci.TerminalColorMode == fs.TerminalColorModeAlways || (ci.TerminalColorMode == fs.TerminalColorModeAuto && !log.Redirected()) {
|
||||
ColorsLock.Lock()
|
||||
Colors = true
|
||||
ColorsLock.Unlock()
|
||||
}
|
||||
|
||||
err = b.setCompareDefaults(ctx)
|
||||
|
||||
Reference in New Issue
Block a user