Pax8API/Public/Get-Pax8OpenApiUpdateStatus.ps1
|
function Get-Pax8OpenApiUpdateStatus { [CmdletBinding()] param () $cachePath = Get-Pax8UpdateCheckCachePath if (-not (Test-Path -LiteralPath $cachePath)) { return [pscustomobject]@{ Checked = $false UpdateAvailable = $false CachePath = $cachePath } } $status = Get-Content -LiteralPath $cachePath -Raw | ConvertFrom-Json $status | Add-Member -NotePropertyName CachePath -NotePropertyValue $cachePath -Force $status } |