From 1317beb53a450a50ba1b3117ee67bd093ee7c70e Mon Sep 17 00:00:00 2001 From: Vladimir Safonkin Date: Thu, 4 Feb 2021 11:20:55 +0300 Subject: [PATCH] Debug --- __tests__/verify-dotnet.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/verify-dotnet.ps1 b/__tests__/verify-dotnet.ps1 index 9c15d91..3adda6e 100755 --- a/__tests__/verify-dotnet.ps1 +++ b/__tests__/verify-dotnet.ps1 @@ -19,7 +19,7 @@ if ($args[1]) # SDKs are listed on multiple lines with the path afterwards in square brackets $version = & $dotnet --list-sdks | ForEach-Object { $_.SubString(0, $_.IndexOf('[')).Trim() } Write-Host "Version $version" - if ($version -notmatch $args[1]) + if (-not ($version -contains $args[1])) { Write-Host "PATH='$env:path'" throw "Unexpected version"