Skip to content

Commit

Permalink
Get-JobList, formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
niphlod committed Feb 10, 2025
1 parent f5c20a0 commit 5bdd507
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions private/functions/Get-JobList.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ function Get-JobList {

$jobs = $server.JobServer.Jobs
if ( (Test-Bound 'JobFilter') -or (Test-Bound 'StepFilter') ) {

foreach ($job in $jobs) {
foreach($jFilter in $JobFilter) {
foreach ($jFilter in $JobFilter) {
if ($jFilter -match '`*') {
if ($Not) {
$job | Where-Object Name -NotLike $jFilter
Expand All @@ -86,7 +86,7 @@ function Get-JobList {
}
}
}
foreach($sFilter in $StepFilter) {
foreach ($sFilter in $StepFilter) {
if ($sFilter -match '`*') {
if ($Not) {
$stepFound = $job.JobSteps | Where-Object Name -NotLike $sFilter
Expand Down

0 comments on commit 5bdd507

Please sign in to comment.