* fix --conflict skip behaviour for fn:replace
This commit is contained in:
parent
8466c7cb1b
commit
e8513bfd54
|
@ -90,7 +90,6 @@ ded
|
|||
Demonoid
|
||||
Director's.Cut
|
||||
Directors.Cut
|
||||
Discovery.Channel
|
||||
DL
|
||||
DLLValley
|
||||
DLLValley.eu
|
||||
|
|
|
@ -614,6 +614,7 @@ Gogeta
|
|||
GokU61
|
||||
GoLDSToNE
|
||||
GOOGLE
|
||||
Gopo
|
||||
GORE
|
||||
GOREHOUNDS
|
||||
GOTHiC
|
||||
|
|
|
@ -14,11 +14,15 @@ args.getFiles{ accept(it) }.each{
|
|||
|
||||
// override files only when --conflict override is set
|
||||
if (!it.equals(nfile)) {
|
||||
if ((nfile.exists() || _args.conflict == 'override') && action != StandardRenameAction.TEST) {
|
||||
if (nfile.exists() && _args.conflict == 'override' && action != StandardRenameAction.TEST) {
|
||||
nfile.delete(); // resolve conflict
|
||||
}
|
||||
|
||||
println action.rename(it, nfile)
|
||||
if (!nfile.exists()) {
|
||||
println action.rename(it, nfile)
|
||||
} else {
|
||||
println "Skipped $nfile"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue