1
0
mirror of https://github.com/actions/setup-dotnet.git synced 2026-02-18 23:41:19 +01:00
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() } $version = & $dotnet --version | Out-String | ForEach-Object { $_.Trim() }
Write-Host "Version $version" Write-Host "Version $version"
if ($version -ne $args[0]) if ($version -contains $args[0])
{ {
Write-Host "PATH='$env:path'" Write-Host "PATH='$env:path'"
throw "Unexpected version" throw "Unexpected version"