Make the worldspawn launch script change directories
This commit is contained in:
parent
75f96079f9
commit
c61874d3a7
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue