Name : Fix name_simple.

This commit is contained in:
Dmitry Voronin 2024-01-03 22:04:54 +03:00
parent db16b4cb8d
commit df5e4edde8

View file

@ -61,7 +61,7 @@ function name_simple() {
[[ "${ext#.}" = "${name}" ]] && ext="" [[ "${ext#.}" = "${name}" ]] && ext=""
# Get new name. # Get new name.
local new_name=$(echo "${name}" | parse_simplify)${ext,,} local new_name=$(parse_simplify "${name}")${ext,,}
# check if same name. # check if same name.
[[ "${target}" = "${new_name}" ]] && return 0 [[ "${target}" = "${new_name}" ]] && return 0