Fix formatting of long mod names.

This commit is contained in:
Daniel Ceregatti 2025-10-30 15:43:00 -06:00
parent 4e9a93ba53
commit f1aa8d27ea
2 changed files with 4 additions and 4 deletions

View file

@ -110,7 +110,7 @@ list(){
then then
C="${green}" C="${green}"
fi fi
printf "${C}%.3d %s %.30s %s https://steamcommunity.com/sharedfiles/filedetails/?id=%s %s${default}\n" ${X} ${ID} "${MODNAME}" "${spaces:${#MODNAME}}" ${ID} ${SIZE} printf "${C}%.3d %s %.36s %s https://steamcommunity.com/sharedfiles/filedetails/?id=%s %s${default}\n" ${X} ${ID} "${MODNAME}" "${spaces:${#MODNAME}}" ${ID} ${SIZE}
X=$((X+1)) X=$((X+1))
done done
echo echo

View file

@ -538,7 +538,7 @@ activelist(){
ID=$(readlink ${link} | awk -F/ '{print $NF}') ID=$(readlink ${link} | awk -F/ '{print $NF}')
MODNAME=$(get_mod_name ${ID}) MODNAME=$(get_mod_name ${ID})
SIZE=$(du -sh "${WORKSHOP_DIR}/${ID}" | awk '{print $1}') SIZE=$(du -sh "${WORKSHOP_DIR}/${ID}" | awk '{print $1}')
printf "${C}%.3d %s %.30s %s https://steamcommunity.com/sharedfiles/filedetails/?id=%s %s${default}\n" ${X} ${ID} "${MODNAME}" "${spaces:${#MODNAME}}" ${ID} ${SIZE} printf "${C}%.3d %s %.36s %s https://steamcommunity.com/sharedfiles/filedetails/?id=%s %s${default}\n" ${X} ${ID} "${MODNAME}" "${spaces:${#MODNAME}}" ${ID} ${SIZE}
X=$((X+1)) X=$((X+1))
done done
if [[ ${have} = "no" ]] if [[ ${have} = "no" ]]