fix settings.cfg and preserve semicolons if present (#369)

This commit is contained in:
Tyler Page authored and Geoff Bourne committed 2019-08-02 11:29:22 -05:00
1 parent e061cc7163
commit 53800e460f
1 file changed
+1 -1
+1 -1
View File
@@ -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}"