Skip to content

Commit 6d82cf8

Browse files
committed
fix build script
1 parent 7ac805c commit 6d82cf8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/build.ps1

+2-1
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,9 @@ if (-not $noVendor) {
129129
else { $WinTermSettingsJson = "" }
130130

131131
# Kill ssh-agent.exe if it is running from the $env:cmder_root we are building
132+
$cmder_folder = $cmder_root.toString()
132133
foreach ($ssh_agent in $(Get-Process ssh-agent -ErrorAction SilentlyContinue)) {
133-
if ([string]$($ssh_agent.path) -Match [string]$cmder_root.replace('\', '\\')) {
134+
if ([string]$($ssh_agent.path) -Match $cmder_folder.Replace('\', '\\')) {
134135
Write-Verbose $("Stopping " + $ssh_agent.path + "!")
135136
Stop-Process $ssh_agent.id
136137
}

0 commit comments

Comments
 (0)