Start.sh script does not work | Minecraft | VServer?

Br
- in Servers
4

I have bought a VServer and unfortunately have an error message in the console

/start.sh: Line 23: Syntax error: Unexpected end of file.

Here is the start.sh script

#! / Bin / bash

while true; do

echo ""

echo "#################################"

echo "## Auto Restart Script ##"

echo "## ##"

echo "## Press Ctrl + C ONLY when this ##"

echo "## message shows to stop the loop. ##"

echo "#################################"

echo "Starting in 5 seconds…"

sleep 1

echo "Starting in 4 seconds…"

sleep 1

echo "Starting in 3 seconds…"

sleep 1

echo "Starting in 2 seconds…"

sleep 1

echo "Starting in 1 seconds…"

sleep 1

java -Xms128M -Xmx2000M -jar spigot.jar --log-strip-color

Knows why that is?

Server system: Ubuntu 18.04 LTS 64bi

Ap

I can't check that, but I think you have to change the -jar to -java.

Ap

Should be a Java call, that end of file. Jar has so only limited what to do

Ja

Because you do not finish the while loop

apart from that, that makes no sense. Take the "while true…" out

Da

At the very end of the code must

done

This completes the endless loop started with while above.

Unexpected end of file

the interpreter just expects "done"