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}")