Files
UnrealEngineUWP/Engine/Build/BatchFiles/Linux/GitDependencies.sh
Dmitry Rekman bf60f17415 Propagate return code from GitDependencies.exe
- Makes Setup.sh fail in case GitDependencies fail, avoiding confusion.
- See https://forums.unrealengine.com/showthread.php?51998-GitHub-dependency-zips-and-latest-preview-snapshots for details.

[CL 2475267 by Dmitry Rekman in Main branch]
2015-03-11 12:05:59 -04:00

22 lines
550 B
Bash
Executable File

#!/bin/bash
# Certain versions of mono can crash while running GitDependencies
# This script checks if that happened and simply re-runs the tool.
ARGS=$@
# cd to Engine root
cd "$(dirname "$BASH_SOURCE")"/../../../..
RESULT=0
while : ; do
mono Engine/Binaries/DotNET/GitDependencies.exe $ARGS
RESULT=$?
echo "Result: $RESULT"
# quit if not crashed
[[ $RESULT -lt 129 ]] && break
echo "mono GitDependencies.exe $ARGS crashed with return code $RESULT" >> GitDependencies.crash.log
done
exit $RESULT