Skip to content

[LGSM] Text issue when "already stopped" #161

@marvinlehmann

Description

@marvinlehmann

Hey,
If I stop my server when it is already stopped the text bugs. I dont know how I should call/name it..
Putty:
[ .... ] Stopping csgo_server: ARES Gaming - Clan Server
(everything is normal but then the line changes)
is already stoppedsgo_server: ARES Gaming - Clan Server

It works, if I change:
servername=$(grep -s hostname "${servercfgfullpath}"|sed 's/hostname //g'|sed 's/"//g')
rcon=$(grep -s rcon_password "${servercfgfullpath}"|sed 's/rcon_password //g'|sed 's/"//g')
to
servername=$(grep -s "hostname" "${servercfgfullpath}" | grep -oP '"\K[^"]+(?=["])')
rcon=$(grep -s "rcon_password" "${servercfgfullpath}" | grep -oP '"\K[^"]+(?=["])')

Sorry but I cant describe this issue in english^^

https://github.com/dgibbs64/linuxgameservers/blob/master/CounterStrikeGlobalOffensive/csgoserver#L580
https://github.com/dgibbs64/linuxgameservers/blob/master/CounterStrikeGlobalOffensive/csgoserver#L75-L76

I'm on Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-35-generic x86_64)

Metadata

Metadata

Assignees

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions