blob: 658ee828bd0cb23497619d899331a3ba74c2e894 [file] [log] [blame] [raw]
#!/bin/bash
# Run script within the directory
BINDIR=$(dirname "$(readlink -fn "$0")")
cd "$BINDIR"
# Build or just do a straight run?
if [ "$1" != "run" ];
then
# Build
./build.sh
fi
# Check if Maven built successfully
if [ $? -eq 0 ] && [ "$1" != "run" ];
then
# Run Glowstone
(cd ../target && ../scripts/start.sh)
else
echo "Glowstone did not build successfully."
fi