diff --git a/lgsm/functions/mods_core.sh b/lgsm/functions/mods_core.sh index fbf2c0b29..9ba3736e7 100644 --- a/lgsm/functions/mods_core.sh +++ b/lgsm/functions/mods_core.sh @@ -43,7 +43,7 @@ fn_mod_lowercase(){ fileswc=$(find "${extractdir}" -depth | wc -l) echo -en "\r" while read -r src; do - dst=`dirname "${src}"`/`basename "${src}" | tr '[A-Z]' '[a-z]'` + dst=$(dirname "${src}"`/`basename "${src}" | tr '[A-Z]' '[a-z]') if [ "${src}" != "${dst}" ] then [ ! -e "${dst}" ] && mv -T "${src}" "${dst}" || echo "${src} was not renamed"