mirror of
https://github.com/actions/setup-dotnet.git
synced 2024-11-22 19:41:08 +07:00
Debug
This commit is contained in:
parent
7164f75e01
commit
f4159a6d20
@ -19,7 +19,7 @@ if ($args[1])
|
|||||||
# SDKs are listed on multiple lines with the path afterwards in square brackets
|
# SDKs are listed on multiple lines with the path afterwards in square brackets
|
||||||
$versions = & $dotnet --list-sdks | ForEach-Object { $_.SubString(0, $_.IndexOf('[')).Trim() } | Out-String
|
$versions = & $dotnet --list-sdks | ForEach-Object { $_.SubString(0, $_.IndexOf('[')).Trim() } | Out-String
|
||||||
Write-Host "Version $versions"
|
Write-Host "Version $versions"
|
||||||
if ($version -notmatch $args[1])
|
if ($versions -notmatch $args[1])
|
||||||
{
|
{
|
||||||
Write-Host "PATH='$env:PATH'"
|
Write-Host "PATH='$env:PATH'"
|
||||||
throw "Unexpected version"
|
throw "Unexpected version"
|
||||||
|
Loading…
Reference in New Issue
Block a user