remove rsync delete flag from stage1

This commit is contained in:
莫振宇 2022-04-06 16:33:08 +08:00
parent 22578b18cf
commit e70df03ff7

View File

@ -193,7 +193,11 @@ func (p *twoStageRsyncProvider) Options(stage int) ([]string, error) {
options = append(options, stage1Profile...)
options = append(options, p.archOptions...)
if p.twoStageRsyncConfig.extraOptions != nil {
options = append(options, p.extraOptions...)
for _, option := range p.extraOptions {
if option != "--delete-excluded" {
options = append(options, option)
}
}
}
} else if stage == 2 {