Ignore:
Timestamp:
May 15, 2014, 8:49:17 PM (11 years ago)
Author:
alloc
Message:

Fix for instances/kill

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/usr/local/bin/7dtd-instances.sh

    r10 r11  
    55# Returns:
    66#  0
     7
    78. /usr/local/bin/7dtd-common.sh
    89checkRootLoadConf
     
    1617        if [ $run -eq 1 ]; then
    1718                run="yes"
     19                tel=$(telnetCommand $ins lp)
     20                cur=`echo $tel | sed "s/\r/\n/g" | sed "s/^ //g" | grep "Total of " | cut -d\  -f 3`
    1821        else
    1922                run="no"
     23                cur=0
    2024        fi
    2125
    22         tel=$(telnetCommand $ins lp)
    2326        max=$(getConfigValue $ins ServerMaxPlayerCount)
    24         cur=`echo $tel | sed "s/\r/\n/g" | sed "s/^ //g" | grep "Total of " | cut -d\  -f 3`
    2527       
    2628        printf "%-*s | %*s |   %2d/%2d\n" 20 "$ins" 8 "$run" $cur $max
Note: See TracChangeset for help on using the changeset viewer.