Skip to content

Commit

Permalink
Make sure the engine VERSION file has been closed before continuing.
Browse files Browse the repository at this point in the history
  • Loading branch information
pchote authored and abcdefg30 committed Apr 18, 2020
1 parent bffbcda commit d56c152
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion make.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d56c152

Please sign in to comment.