From 53800e460fb7ddf55c96bb03558d620433244b67 Mon Sep 17 00:00:00 2001 From: Tyler Page Date: Fri, 2 Aug 2019 16:29:22 +0000 Subject: [PATCH] fix settings.cfg and preserve semicolons if present (#369) --- start-minecraftFinalSetup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start-minecraftFinalSetup b/start-minecraftFinalSetup index 0b4b1f40..d848c6d4 100644 --- a/start-minecraftFinalSetup +++ b/start-minecraftFinalSetup @@ -105,7 +105,7 @@ EOF # patch CurseForge cfg file, if present if [ -f "${FTB_DIR}/settings.cfg" ]; then - sed -i "/MAX_RAM=.*/ c MAX_RAM=${MAX_MEMORY};" "${FTB_DIR}/settings.cfg" + sed -i "s/MAX_RAM=[^;]*/MAX_RAM=${MAX_MEMORY}/" "${FTB_DIR}/settings.cfg" fi cd "${FTB_DIR}"