From 4b472b020b835f8bf04cf32a95555e51c929e8b8 Mon Sep 17 00:00:00 2001 From: Rudolf Kleijwegt Date: Thu, 1 Jan 2015 13:23:44 +0100 Subject: [PATCH] Update vCheck.ps1 Change job plugin paths routine so it still works with PowerShell 2.0 --- vCheck.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vCheck.ps1 b/vCheck.ps1 index a54b4138..888572f8 100644 --- a/vCheck.ps1 +++ b/vCheck.ps1 @@ -564,7 +564,7 @@ if ($job) { foreach ($PluginPath in ($jobConfig.vCheck.plugins.path -split ";")) { if (Test-Path $PluginPath) { $PluginPaths += (Get-Item $PluginPath).Fullname - $PluginPaths += Get-Childitem $PluginPath -Directory -recurse | Select -expandproperty FullName + $PluginPaths += Get-Childitem $PluginPath -recurse | ?{ $_.PSIsContainer } | Select -expandproperty FullName } else { $PluginPaths += $ScriptPath + "\Plugins"