From d56c152409e567283a988867b4a8e7520085c3f2 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 18 Apr 2020 11:12:26 +0100 Subject: [PATCH] Make sure the engine VERSION file has been closed before continuing. --- make.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/make.ps1 b/make.ps1 index a8d6e93..f76bc24 100644 --- a/make.ps1 +++ b/make.ps1 @@ -308,7 +308,9 @@ if ($command -eq "all" -or $command -eq "clean") $currentEngine = "" if (Test-Path $versionFile) { - $currentEngine = [System.IO.File]::OpenText($versionFile).ReadLine() + $reader = [System.IO.File]::OpenText($versionFile) + $currentEngine = $reader.ReadLine() + $reader.Close() } if ($currentEngine -ne "" -and $currentEngine -eq $env:ENGINE_VERSION)