We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ac805c commit 6d82cf8Copy full SHA for 6d82cf8
scripts/build.ps1
@@ -129,8 +129,9 @@ if (-not $noVendor) {
129
else { $WinTermSettingsJson = "" }
130
131
# Kill ssh-agent.exe if it is running from the $env:cmder_root we are building
132
+ $cmder_folder = $cmder_root.toString()
133
foreach ($ssh_agent in $(Get-Process ssh-agent -ErrorAction SilentlyContinue)) {
- if ([string]$($ssh_agent.path) -Match [string]$cmder_root.replace('\', '\\')) {
134
+ if ([string]$($ssh_agent.path) -Match $cmder_folder.Replace('\', '\\')) {
135
Write-Verbose $("Stopping " + $ssh_agent.path + "!")
136
Stop-Process $ssh_agent.id
137
}
0 commit comments