This commit is contained in:
Vladimir Safonkin 2021-02-04 13:41:45 +03:00
parent ac1baccba4
commit 1c7be1087d
2 changed files with 5 additions and 3 deletions

View File

@ -169,7 +169,8 @@ jobs:
env:
NUGET_AUTH_TOKEN: NOTATOKEN
- name: Verify dotnet
run: __tests__/verify-dotnet.sh 3.1.201
shell: pwsh
run: __tests__/verify-dotnet.ps1 3.1.201
test-bypass-proxy:
runs-on: ubuntu-latest
@ -189,4 +190,5 @@ jobs:
env:
NUGET_AUTH_TOKEN: NOTATOKEN
- name: Verify dotnet
run: __tests__/verify-dotnet.sh 3.1.201
shell: pwsh
run: __tests__/verify-dotnet.ps1 3.1.201

View File

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