Do not fail renumbering when already renumbered
This commit is contained in:
parent
029f7a2af7
commit
16db6f5a7c
|
@ -116,7 +116,7 @@ function renumber() (
|
|||
shift 1
|
||||
i=1
|
||||
for file in $@; do
|
||||
mv "$file" "$(dirname $file)/$(printf %0${digits}d $i).${file##*.}"
|
||||
mv -n "$file" "$(dirname $file)/$(printf %0${digits}d $i).${file##*.}"
|
||||
i=$((i+1))
|
||||
done
|
||||
)
|
||||
|
|
Reference in a new issue