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