diff --git a/.config/bash/module/Name.sh b/.config/bash/module/Name.sh index 5920da0..505abdf 100644 --- a/.config/bash/module/Name.sh +++ b/.config/bash/module/Name.sh @@ -214,7 +214,8 @@ function name_music() { process() { # 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. [[ "${target%/}" = "${new_name}" ]] && return 0