check the full name of the root instead of directory info (#342)

This commit is contained in:
Yanbing 2018-09-17 16:48:52 -07:00 committed by GitHub
parent 06ba674c67
commit 9e983eadf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -691,7 +691,7 @@ function Get-BuildLogFile
[ValidateSet('Debug', 'Release')]
[string]$Configuration = "Release"
)
if($root -ieq $PSScriptRoot)
if ($root.FullName -ieq $PSScriptRoot)
{
return Join-Path -Path $PSScriptRoot -ChildPath "OpenSSH$($Configuration)$($NativeHostArch).log"
} else {
@ -707,7 +707,7 @@ function Get-SolutionFile
[ValidateNotNull()]
[System.IO.DirectoryInfo] $root
)
if($root -ieq $PSScriptRoot)
if ($root.FullName -ieq $PSScriptRoot)
{
return Join-Path -Path $PSScriptRoot -ChildPath "Win32-OpenSSH.sln"
} else {