From 9e983eadf67437b3af885de05165bef88c817bca Mon Sep 17 00:00:00 2001 From: Yanbing Date: Mon, 17 Sep 2018 16:48:52 -0700 Subject: [PATCH] check the full name of the root instead of directory info (#342) --- contrib/win32/openssh/OpenSSHBuildHelper.psm1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/win32/openssh/OpenSSHBuildHelper.psm1 b/contrib/win32/openssh/OpenSSHBuildHelper.psm1 index 59b2fa569..e4d026480 100644 --- a/contrib/win32/openssh/OpenSSHBuildHelper.psm1 +++ b/contrib/win32/openssh/OpenSSHBuildHelper.psm1 @@ -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 {