Skip to content

Commit

Permalink
Merge pull request #308 from rkleijwegt/master
Browse files Browse the repository at this point in the history
Change job plugin paths routine in vCheck.ps1 so it still works with PowerShell 2.0
  • Loading branch information
Sneddo committed Jan 1, 2015
2 parents 086e26c + 4b472b0 commit 1d64752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vCheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1d64752

Please sign in to comment.