copyurl: add no-clobber flag - fixes #3950

This commit is contained in:
Denis
2020-04-19 14:40:17 +03:00
committed by GitHub
parent 9d4b3580a5
commit 31a1cc46b7
6 changed files with 43 additions and 8 deletions

View File

@@ -215,8 +215,9 @@ func rcSingleCommand(ctx context.Context, in rc.Params, name string, noRemote bo
return nil, err
}
autoFilename, _ := in.GetBool("autoFilename")
noClobber, _ := in.GetBool("noClobber")
_, err = CopyURL(ctx, f, remote, url, autoFilename)
_, err = CopyURL(ctx, f, remote, url, autoFilename, noClobber)
return nil, err
case "cleanup":
return nil, CleanUp(ctx, f)