From 15a706a8b211ec5a3512845bb56c34b568f4224e Mon Sep 17 00:00:00 2001 From: Lucas Briese Date: Sun, 27 Sep 2020 20:46:33 +0200 Subject: [PATCH] fix, whitespace in sv_variable not allowed --- gmod/initConfig.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gmod/initConfig.sh b/gmod/initConfig.sh index a6b619a..0362140 100644 --- a/gmod/initConfig.sh +++ b/gmod/initConfig.sh @@ -12,7 +12,7 @@ CFG_PATH="${SERVER_PATH}/garrysmod/cfg/gmodserver.cfg" function configReplace() { source="$1" - target="$2" + target="\"$2\"" count=$(grep -Poc "($source).+" "${CFG_PATH}")