Skip to content

Commit 45a9ecc

Browse files
committed
fix(installer): 修正模块加载路径问题
将直接引用同级目录改为通过父目录引用模块文件,避免脚本执行时路径错误
1 parent 8e76971 commit 45a9ecc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

profile/installer/installApp.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ param(
1919
# [switch]$Confirm
2020
)
2121

22-
. $PSScriptRoot/loadModule.ps1
22+
$parentFolder = Split-Path -Parent $PSScriptRoot
23+
. $parentFolder/loadModule.ps1
2324

2425

2526

0 commit comments

Comments
 (0)