This commit is contained in:
Vladimir Safonkin 2021-02-04 10:45:20 +03:00
parent 831e0d4070
commit 993f819e3d

View File

@ -8,7 +8,7 @@ Write-Host "Found '$dotnet'"
$version = & $dotnet --version | Out-String | ForEach-Object { $_.Trim() }
Write-Host "Version $version"
if ($version -ne $args[0])
if ($version -contains $args[0])
{
Write-Host "PATH='$env:path'"
throw "Unexpected version"