Skip to content

Commit

Permalink
fix(buckets): Avoid error messages for unexpected dir
Browse files Browse the repository at this point in the history
  • Loading branch information
HUMORCE committed Jun 20, 2023
1 parent 1d14058 commit e78c168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/buckets.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function list_buckets {
$bucket.Updated = Invoke-Git -Path $path -ArgumentList @('log', '--format=%aD', '-n', '1') | Get-Date
} else {
$bucket.Source = friendly_path $path
$bucket.Updated = (Get-Item "$path\bucket").LastWriteTime
$bucket.Updated = (Get-Item "$path\bucket" -ErrorAction SilentlyContinue).LastWriteTime
}
$bucket.Manifests = Get-ChildItem "$path\bucket" -Force -Recurse -ErrorAction SilentlyContinue |
Measure-Object | Select-Object -ExpandProperty Count
Expand Down

0 comments on commit e78c168

Please sign in to comment.