Name : Fix music.
This commit is contained in:
parent
5ea5465f6a
commit
5d8546e229
|
@ -214,7 +214,8 @@ function name_music() {
|
||||||
|
|
||||||
process() {
|
process() {
|
||||||
# Extract new name.
|
# Extract new name.
|
||||||
local new_name="$(parse_titlecase $(parse_simplify ${target}))"
|
local ext=${target##*.}
|
||||||
|
local new_name="$(parse_titlecase $(parse_simplify ${target%.*})).${ext}"
|
||||||
|
|
||||||
# Skip on no change.
|
# Skip on no change.
|
||||||
[[ "${target%/}" = "${new_name}" ]] && return 0
|
[[ "${target%/}" = "${new_name}" ]] && return 0
|
||||||
|
|
Reference in a new issue