Ignore:
Timestamp:
Jun 15, 2014, 1:30:55 AM (11 years ago)
Author:
alloc
Message:

Version 17: Fix display of server name with blanks in status

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/usr/local/lib/7dtd/commands/status.sh

    r23 r58  
    2929        echo
    3030        echo "Game info:"
    31         line "Server name:" $(getConfigValue $1 ServerName)
    32         line "Password:" $(getConfigValue $1 ServerPassword)
    33         line "Max players:" $(getConfigValue $1 ServerMaxPlayerCount)
    34         line "World:" $(getConfigValue $1 GameWorld)
     31        line "Server name:" "$(getConfigValue $1 ServerName)"
     32        line "Password:" "$(getConfigValue $1 ServerPassword)"
     33        line "Max players:" "$(getConfigValue $1 ServerMaxPlayerCount)"
     34        line "World:" "$(getConfigValue $1 GameWorld)"
    3535
    3636        echo
    3737        echo "Network info:"
    38         line "Port:" $(getConfigValue $1 ServerPort)
    39         line "Public:" $(getConfigValue $1 ServerIsPublic)
     38        line "Port:" "$(getConfigValue $1 ServerPort)"
     39        line "Public:" "$(getConfigValue $1 ServerIsPublic)"
    4040        if [ "$(getConfigValue $1 ControlPanelEnabled)" = "false" ]; then
    4141                cp="off"
Note: See TracChangeset for help on using the changeset viewer.