From 85fc6b8e2045be695a428068c9d24527f194590b Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 27 Mar 2021 15:42:57 +0000 Subject: [PATCH] add escaped quotes to start parameters --- lgsm/config-default/config-lgsm/arma3server/_default.cfg | 2 +- lgsm/functions/command_debug.sh | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/lgsm/config-default/config-lgsm/arma3server/_default.cfg b/lgsm/config-default/config-lgsm/arma3server/_default.cfg index d7da37cf1..ec4d9b28f 100644 --- a/lgsm/config-default/config-lgsm/arma3server/_default.cfg +++ b/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 #### diff --git a/lgsm/functions/command_debug.sh b/lgsm/functions/command_debug.sh index e0f4fb547..0e005d8a2 100755 --- a/lgsm/functions/command_debug.sh +++ b/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