Powershell script is now process in ExecCommand()

This commit is contained in:
Yorick Barbanneau 2018-04-09 16:27:16 +02:00
parent 3cc0e75289
commit 0529b16387

View file

@ -593,7 +593,7 @@ function ExecCommand {
$args = $params.arguments.Replace("##mod_path##", $script:current_module_path)
Write-Host -NoNewline "`tExecute : $path : "
$path = Invoke-Expression """$($path)"""
if ( -not (Test-Path $path) -or -not $path -eq "powershell" ) {
if ( -not (Test-Path $path) -and -not $path -eq "powershell" ) {
Write-Host -ForegroundColor Yellow "File not found"
return
}