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

View File

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