summarylogtreecommitdiffstats
path: root/stop_mono_clone.patch
blob: 029f30c926f4ee25cf33c416e40933784d0671d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/Engine/Build/BatchFiles/Linux/BuildThirdParty.sh b/Engine/Build/BatchFiles/Linux/BuildThirdParty.sh
index 0c2002c91e5..a6b2e5b9936 100755
--- a/Engine/Build/BatchFiles/Linux/BuildThirdParty.sh
+++ b/Engine/Build/BatchFiles/Linux/BuildThirdParty.sh
@@ -364,7 +364,7 @@ BuildMono()
   done
   P4Open $UE_MONO_DIR/lib/mono/4.5/mscorlib.dll
 
-  if [ ! -d mono ]; then
+  if [[ ! -d mono || -z "UE_USE_SYSTEM_MONO" ]]; then
 	git clone -b mono-4.0.0-branch https://github.com/mono/mono.git
   fi
   cd mono