Skip to content

Commit bbe4f96

Browse files
committed
review comment.
1 parent 2e7a4a0 commit bbe4f96

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Tasks/DeployVisualStudioTestAgent/InstallTestAgent.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,10 @@ function InstallTestAgent2017 {
2626

2727
# First we need to install the certificates for TA 2017
2828
$SetupDir = Split-Path -Path $SetupPath
29-
30-
$osVersion = [environment]::OSVersion.Version
3129
$certFiles = Get-ChildItem -Path "$SetupDir\certificates\*.p12" -ErrorAction SilentlyContinue
3230
if($certFiles -and $certFiles.Length -gt 0)
3331
{
32+
$osVersion = [environment]::OSVersion.Version
3433
Write-Verbose "Installing test agent certificates" -Verbose
3534
if ($osVersion.Major -eq "6" -and $osVersion.Minor -eq "1") {
3635
## Windows 7 SP1. Import-PfxCertificate is not present in windows 7

0 commit comments

Comments
 (0)