diff --git a/scripts/start-finalExec b/scripts/start-finalExec index f0d6b5fb..d7325a04 100755 --- a/scripts/start-finalExec +++ b/scripts/start-finalExec @@ -323,10 +323,10 @@ EOF else exec mc-server-runner "${mcServerRunnerArgs[@]}" "${finalArgs[@]}" fi -elif [[ -x run.sh ]]; then +elif [[ $SERVER =~ run.sh ]]; then log "Using Forge supplied run.sh script..." echo $JVM_XX_OPTS $JVM_OPTS $expandedDOpts > user_jvm_args.txt - exec mc-server-runner "${mcServerRunnerArgs[@]}" --shell bash run.sh + exec mc-server-runner "${mcServerRunnerArgs[@]}" --shell bash "${SERVER}" else # If we have a bootstrap.txt file... feed that in to the server stdin if [ -f /data/bootstrap.txt ]; then