From 6d82cf897ba7ed0816fec47de06596786e3a8ab5 Mon Sep 17 00:00:00 2001 From: "Dax T. Games" Date: Thu, 3 Apr 2025 20:34:34 +0000 Subject: [PATCH] fix build script --- scripts/build.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build.ps1 b/scripts/build.ps1 index f577fa1..9d484d3 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -129,8 +129,9 @@ if (-not $noVendor) { else { $WinTermSettingsJson = "" } # Kill ssh-agent.exe if it is running from the $env:cmder_root we are building + $cmder_folder = $cmder_root.toString() foreach ($ssh_agent in $(Get-Process ssh-agent -ErrorAction SilentlyContinue)) { - if ([string]$($ssh_agent.path) -Match [string]$cmder_root.replace('\', '\\')) { + if ([string]$($ssh_agent.path) -Match $cmder_folder.Replace('\', '\\')) { Write-Verbose $("Stopping " + $ssh_agent.path + "!") Stop-Process $ssh_agent.id }