From d9e552a07bc2169ad7c04fbba716ae7661784cfd Mon Sep 17 00:00:00 2001 From: home Date: Sun, 19 Nov 2023 08:56:38 +0300 Subject: [PATCH] name & name_hash : lowercase extension. --- .config/bash/module/name.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/bash/module/name.sh b/.config/bash/module/name.sh index 68049e9..7c41dfb 100644 --- a/.config/bash/module/name.sh +++ b/.config/bash/module/name.sh @@ -31,7 +31,7 @@ name() [[ "${ext#.}" = "${name}" ]] && ext="" # Get new name. - local new_name=$(parse_simplify "${name}")${ext} + local new_name=$(parse_simplify "${name}")${ext,,} # status line. local status="[${count}/${total}] ${target} -> ${new_name}" @@ -87,7 +87,7 @@ name_hash() # hash the new name. local hash=$(sha1sum -- "${target}" | cut -d\ -f1) - new_name="${hash,,}${extension}" + new_name="${hash,,}${extension,,}" # prepare status. local status="[${count}/${total}] ${target} -> ${new_name}"