Skip to content

Commit d56c152

Browse files
pchoteabcdefg30
authored andcommitted
Make sure the engine VERSION file has been closed before continuing.
1 parent bffbcda commit d56c152

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

make.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,9 @@ if ($command -eq "all" -or $command -eq "clean")
308308
$currentEngine = ""
309309
if (Test-Path $versionFile)
310310
{
311-
$currentEngine = [System.IO.File]::OpenText($versionFile).ReadLine()
311+
$reader = [System.IO.File]::OpenText($versionFile)
312+
$currentEngine = $reader.ReadLine()
313+
$reader.Close()
312314
}
313315

314316
if ($currentEngine -ne "" -and $currentEngine -eq $env:ENGINE_VERSION)

0 commit comments

Comments
 (0)