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
This commit is contained in:
Kayos 2026-03-05 13:19:29 -08:00
parent 56911472f4
commit aab239bf0b

View file

@ -36,7 +36,7 @@ fi
if [[ -n "$JVM_OPTS" ]]; then if [[ -n "$JVM_OPTS" ]]; then
sed -i '/-Xm[s,x]/d' user_jvm_args.txt 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 fi
if [[ -n "$MOTD" ]]; then if [[ -n "$MOTD" ]]; then
sed -i "s/^motd=.*/motd=$MOTD/" /data/server.properties sed -i "s/^motd=.*/motd=$MOTD/" /data/server.properties