Fix a path issue
This commit is contained in:
@@ -27,10 +27,11 @@ function UninstallDevices($devManViewPath, $devices) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# 读取配置文件
|
# 读取配置文件
|
||||||
$config = Get-Content -Path .\config.json | ConvertFrom-Json
|
|
||||||
|
|
||||||
# 配置选项,当选项不起作用时,检查DevManView.cfg中是否配置了filter
|
# 配置选项,当选项不起作用时,检查DevManView.cfg中是否配置了filter
|
||||||
$scriptPath = $myinvocation.mycommand.definition
|
$scriptPath = $myinvocation.mycommand.definition
|
||||||
|
$config = Get-Content -Path $scriptPath\..\config.json | ConvertFrom-Json
|
||||||
$devManViewPath = $config.devManViewPath
|
$devManViewPath = $config.devManViewPath
|
||||||
$deviceListFile = $config.deviceListFile
|
$deviceListFile = $config.deviceListFile
|
||||||
$pattern = $config.pattern
|
$pattern = $config.pattern
|
||||||
|
|||||||
Reference in New Issue
Block a user