fix, whitespace in sv_variable not allowed

This commit is contained in:
Lucas Briese 2020-09-27 20:46:33 +02:00
parent 0415e30719
commit 15a706a8b2

View File

@ -12,7 +12,7 @@ CFG_PATH="${SERVER_PATH}/garrysmod/cfg/gmodserver.cfg"
function configReplace() { function configReplace() {
source="$1" source="$1"
target="$2" target="\"$2\""
count=$(grep -Poc "($source).+" "${CFG_PATH}") count=$(grep -Poc "($source).+" "${CFG_PATH}")