Skip to content

Commit

Permalink
Fix recurse depth
Browse files Browse the repository at this point in the history
  • Loading branch information
jvlflame committed Sep 10, 2020
1 parent 0bd6dc9 commit 73c8fc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Javinizer/Public/Update-JVNfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function Update-JVNfo {
if ($Depth) {
$nfoFiles = Get-ChildItem -LiteralPath $Path -Recurse:$Recurse -Depth:$Depth | Where-Object { $_.Extension -eq '.nfo' }
} else {
$nfoFiles = Get-ChildItem -LiteralPath $Path -Recurse:$Recurse -Depth:$Depth | Where-Object { $_.Extension -eq '.nfo' }
$nfoFiles = Get-ChildItem -LiteralPath $Path -Recurse:$Recurse | Where-Object { $_.Extension -eq '.nfo' }
}
}

Expand Down Expand Up @@ -372,7 +372,7 @@ function Update-JVNfo {

$newNfoContent = (Get-Content -LiteralPath $file) -join "`r`n"
if ($originalNfoContent -ne $newNfoContent) {
Write-JVLog -Write:$script:JVLogWrite -LogPath $script:JVLogPath -WriteLevel $script:JVLogWriteLevel -Level Info -Message "Updated nfo [$file]"
Write-JVLog -Write:$script:JVLogWrite -LogPath $script:JVLogPath -WriteLevel $script:JVLogWriteLevel -Level Info -Message "[$($MyInvocation.MyCommand.Name)] Updated nfo [$file]"
}
}
}
Expand Down

0 comments on commit 73c8fc6

Please sign in to comment.