Make sure the engine VERSION file has been closed before continuing.

This commit is contained in:
Paul Chote 2020-04-18 11:12:26 +01:00 committed by abcdefg30
parent bffbcdacbf
commit d56c152409

View File

@ -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)