From d87fa49b2e4dbc5925b057fa647da4025ae7d0af Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 6 Jan 2026 04:36:51 +0000 Subject: [PATCH] Improve efficiency of current directory detection Use $PWD.Path instead of Get-Location | Select-Object for better performance Co-authored-by: ccmywish <63459097+ccmywish@users.noreply.github.com> --- tool/installer.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/installer.ps1 b/tool/installer.ps1 index ae405a6..3390e5f 100644 --- a/tool/installer.ps1 +++ b/tool/installer.ps1 @@ -110,7 +110,7 @@ function Set_Install_Dir { output_info "Detected Downloads directory: $Directory" } else { # 使用当前目录作为默认值 - $Directory = Get-Location | Select-Object -ExpandProperty Path + $Directory = $PWD.Path output_info "Using current directory: $Directory" } }