Skip to content

Commit 340f9b2

Browse files
committed
refactor(cleanEnvPath): 移除冗余的psutils模块导入代码
删除不再需要的模块导入代码,简化脚本结构
1 parent db2628d commit 340f9b2

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

‎scripts/pwsh/misc/cleanEnvPath.ps1‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,6 @@ param (
5959
)
6060

6161

62-
# 导入必需的模块
63-
try {
64-
Import-Module (Resolve-Path -Path $PSScriptRoot/psutils) -ErrorAction Stop
65-
}
66-
catch {
67-
Write-Error "无法导入psutils模块: $_"
68-
exit 1
69-
}
7062

7163
# 检查管理员权限(当操作Machine级别环境变量时)
7264
if ($EnvTarget -eq 'Machine') {

0 commit comments

Comments
 (0)