Do not fail renumbering when already renumbered
This commit is contained in:
parent
029f7a2af7
commit
16db6f5a7c
|
@ -116,7 +116,7 @@ function renumber() (
|
||||||
shift 1
|
shift 1
|
||||||
i=1
|
i=1
|
||||||
for file in $@; do
|
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))
|
i=$((i+1))
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
|
|
Reference in a new issue