Browse Source

add escaped quotes to start parameters

pull/3386/head
Daniel Gibbs 5 years ago
parent
commit
85fc6b8e20
  1. 2
      lgsm/config-default/config-lgsm/arma3server/_default.cfg
  2. 5
      lgsm/functions/command_debug.sh

2
lgsm/config-default/config-lgsm/arma3server/_default.cfg

@ -32,7 +32,7 @@ servermods=""
bepath=""
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
startparameters="-ip=${ip} -port=${port} -cfg=${networkcfgfullpath} -config=${servercfgfullpath} -mod=${mods} -servermod=${servermods} -bepath=${bepath} -autoinit -loadmissiontomemory"
startparameters="\"-ip=${ip} -port=${port} -cfg=${networkcfgfullpath} -config=${servercfgfullpath} -mod=${mods} -servermod=${servermods} -bepath=${bepath} -autoinit -loadmissiontomemory\""
#### LinuxGSM Settings ####

5
lgsm/functions/command_debug.sh

@ -106,11 +106,6 @@ cd "${executabledir}" || exit
# Note: do not add double quotes to ${executable} ${startparameters}.
if [ "${engine}" == "source" ]||[ "${engine}" == "goldsrc" ]; then
${executable} ${startparameters} -debug
elif [ "${shortname}" == "arma3" ]; then
# Arma3 requires semicolons in the module list, which need to
# be escaped for regular (tmux) loading, but need to be
# stripped when loading straight from the console.
${executable} ${startparameters//\\;/;}
elif [ "${engine}" == "quake" ]; then
${executable} ${startparameters} -condebug
else

Loading…
Cancel
Save