Skip to content

Commit e78c168

Browse files
committed
fix(buckets): Avoid error messages for unexpected dir
1 parent 1d14058 commit e78c168

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/buckets.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function list_buckets {
111111
$bucket.Updated = Invoke-Git -Path $path -ArgumentList @('log', '--format=%aD', '-n', '1') | Get-Date
112112
} else {
113113
$bucket.Source = friendly_path $path
114-
$bucket.Updated = (Get-Item "$path\bucket").LastWriteTime
114+
$bucket.Updated = (Get-Item "$path\bucket" -ErrorAction SilentlyContinue).LastWriteTime
115115
}
116116
$bucket.Manifests = Get-ChildItem "$path\bucket" -Force -Recurse -ErrorAction SilentlyContinue |
117117
Measure-Object | Select-Object -ExpandProperty Count

0 commit comments

Comments
 (0)