Fix a path issue

This commit is contained in:
2024-02-21 10:55:41 +08:00
parent 9046c88cca
commit 3aabbcd244

View File

@@ -27,10 +27,11 @@ function UninstallDevices($devManViewPath, $devices) {
}
# 读取配置文件
$config = Get-Content -Path .\config.json | ConvertFrom-Json
# 配置选项当选项不起作用时检查DevManView.cfg中是否配置了filter
$scriptPath = $myinvocation.mycommand.definition
$config = Get-Content -Path $scriptPath\..\config.json | ConvertFrom-Json
$devManViewPath = $config.devManViewPath
$deviceListFile = $config.deviceListFile
$pattern = $config.pattern