Make the worldspawn launch script change directories

This commit is contained in:
Marco Cawthorne 2021-01-16 21:16:46 +01:00
parent 75f96079f9
commit c61874d3a7
1 changed files with 4 additions and 4 deletions

View File

@ -1,13 +1,13 @@
#!/bin/sh
SCRPATH="$( cd "$( dirname $(readlink -nf $0) )" && pwd )"
PATH="$SCRPATH"/bin:"$PATH"
SRCPATH="$( cd "$( dirname $(readlink -nf $0) )" && pwd )"
if [ ! -f "$SCRPATH"/bin/worldspawn ]; then
if [ ! -f "$SRCPATH"/bin/worldspawn ]; then
printf "Map editor is not present, please run build_editor.sh\n"
exit
fi
worldspawn
cd "$SRCPATH"/bin
./worldspawn