I have a script that should start my Minecraft server. The script is a follows:
#!/bin/bash
java -Xincgc -Xmx1G -jar "/home/jamie/Programs/Minecraft Server/craftbukkit-0.0.1-SNAPSHOT.jar"
The script is located in my scripts directory in my home folder and it is in my path. But when I execute the script the server starts writing all the data to my home folder(The directory I am in). How can I tell the script to change its working directory to the server folder? Thanks.
Bookmarks