mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-11-02 22:43:31 +00:00
Fix formatting of long mod names.
This commit is contained in:
parent
4e9a93ba53
commit
f1aa8d27ea
2 changed files with 4 additions and 4 deletions
|
|
@ -91,7 +91,7 @@ prompt_yn(){
|
|||
# List mods. Highlight the ones that are active when run from the server script.
|
||||
list(){
|
||||
X=1
|
||||
spaces=" "
|
||||
spaces=" "
|
||||
FIRST=1
|
||||
for link in $(ls -d ${SERVER_FILES}/@* 2> /dev/null | sort)
|
||||
do
|
||||
|
|
@ -110,7 +110,7 @@ list(){
|
|||
then
|
||||
C="${green}"
|
||||
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))
|
||||
done
|
||||
echo
|
||||
|
|
|
|||
|
|
@ -525,7 +525,7 @@ activate(){
|
|||
activelist(){
|
||||
X=1
|
||||
C="${green}"
|
||||
spaces=" "
|
||||
spaces=" "
|
||||
have=no
|
||||
for link in $(ls -tdr ${SERVER_PROFILE}/@* 2> /dev/null)
|
||||
do
|
||||
|
|
@ -538,7 +538,7 @@ activelist(){
|
|||
ID=$(readlink ${link} | awk -F/ '{print $NF}')
|
||||
MODNAME=$(get_mod_name ${ID})
|
||||
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))
|
||||
done
|
||||
if [[ ${have} = "no" ]]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue