From aab239bf0bd90db7fcd07ec9e4c3a57d49789371 Mon Sep 17 00:00:00 2001 From: Kayos Date: Thu, 5 Mar 2026 13:19:29 -0800 Subject: [PATCH] fix: replace broken JVM_OPTS sed with simple echo append Orphaned single quote in sed -i "$a\\\"\"\"\\"\"\"" caused bash EOF parse error. Replaced with: for j in ${JVM_OPTS}; do echo "$j" >> user_jvm_args.txt; done --- launch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launch.sh b/launch.sh index 4dea7f4..2796cef 100644 --- a/launch.sh +++ b/launch.sh @@ -36,7 +36,7 @@ fi if [[ -n "$JVM_OPTS" ]]; then sed -i '/-Xm[s,x]/d' user_jvm_args.txt - for j in ${JVM_OPTS}; do sed -i '$a\''$j'' user_jvm_args.txt; done + for j in ; do echo "" >> user_jvm_args.txt; done fi if [[ -n "$MOTD" ]]; then sed -i "s/^motd=.*/motd=$MOTD/" /data/server.properties