Parcourir la source

better lowercase algorithm

UltimateByte il y a 9 ans
Parent
commit
d6c5bf446e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lgsm/functions/mods_core.sh

+ 1 - 1
lgsm/functions/mods_core.sh

@@ -74,7 +74,7 @@ fn_mod_lowercase(){
 	if [ "${modlowercase}" == "LowercaseOn" ]; then
 		fn_print_dots "Converting ${modprettyname} files to lowercase"
 		fn_script_log "Converting ${modprettyname} files to lowercase"
-		find "${extractdir}" -exec readlink -e '{}' \; | rename  'y/A-Z/a-z/'
+		find "${extractdir}" -depth -exec rename 's/(.*)\/([^\/]*)/$1\/\L$2/' {} \;
 		fn_print_ok "Converting ${modprettyname} files to lowercase"
 		sleep 1
 	fi