Rework ExecCommand()
This commit is contained in:
parent
0529b16387
commit
1739c2f800
1 changed files with 1 additions and 2 deletions
|
@ -598,8 +598,7 @@ function ExecCommand {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
Start-Process -wait -filepath $path -ArgumentList $args.split(" ")
|
Start-Process -NoNewWindow -wait -filepath $path -ArgumentList $args
|
||||||
Write-Host -ForegroundColor Green "done"
|
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Write-Host -NoNewLine -ForegroundColor Red "Error`n`t"
|
Write-Host -NoNewLine -ForegroundColor Red "Error`n`t"
|
||||||
|
|
Reference in a new issue