build_game.sh: when gamedir parameter is specified, pull from the main repo first before pulling from gamedir

This commit is contained in:
Marco Cawthorne 2021-08-29 19:10:55 +02:00
parent 6cea322f6a
commit 2066669bee
1 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,11 @@ if [ -f "$SCRPATH"/bin/fteqcc ]; then
# We want to compile a specific game
if [ $# -gt 0 ]; then
if [ "$BUILD_UPDATE" -eq 1 ]; then
# git pull on the main repo
git pull
fi
cd "$SCRPATH/$1"/src
if [ "$BUILD_UPDATE" -eq 1 ]; then