mirror of
https://github.com/itchyny/mmv.git
synced 2025-12-26 22:24:58 +08:00
stop removing unchanged entries in main to catch more duplicate destination error
This commit is contained in:
parent
7a6825f90a
commit
96d19d4ed3
1 changed files with 1 additions and 3 deletions
|
|
@ -119,9 +119,7 @@ func rename(args []string) error {
|
|||
}
|
||||
files := make(map[string]string, len(args))
|
||||
for i, src := range args {
|
||||
if dst := got[i]; src != dst {
|
||||
files[src] = dst
|
||||
}
|
||||
files[src] = got[i]
|
||||
}
|
||||
return mmv.Rename(files)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue