mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-23 15:08:28 +00:00
escape sessionname special chars
This commit is contained in:
parent
8d9bbadf5b
commit
d7da82e47b
@ -127,7 +127,7 @@ doStart() {
|
|||||||
if isTheServerRunning; then
|
if isTheServerRunning; then
|
||||||
echo "The server is already running"
|
echo "The server is already running"
|
||||||
else
|
else
|
||||||
ark_SessionName="${ark_SessionName:-${sessionname}}"
|
ark_SessionName=`printf "%q" "${ark_SessionName:-${sessionname}}"` # Escape SessionName to prevent conflicts in the startup sequence
|
||||||
ark_Port="${ark_Port:-${arkserverport}}"
|
ark_Port="${ark_Port:-${arkserverport}}"
|
||||||
ark_QueryPort="${ark_QueryPort:-${arkqueryport}}"
|
ark_QueryPort="${ark_QueryPort:-${arkqueryport}}"
|
||||||
ark_ServerPassword="${ark_ServerPassword:-${arkserverpass}}"
|
ark_ServerPassword="${ark_ServerPassword:-${arkserverpass}}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user