Skip to content

Commit

Permalink
Added option to skip version check
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuafdo committed Dec 9, 2024
1 parent 0a6b2ec commit 63e722c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions powershell/public/Invoke-Maester.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,11 @@ function Invoke-Maester {

# Disable Telemetry
# If set, telemetry information will not be logged.
[switch] $DisableTelemetry
[switch] $DisableTelemetry,
`
# Skip the version check.
# If set, the version check will not be performed.
[switch] $SkipVersionCheck

)

Expand Down Expand Up @@ -348,7 +352,9 @@ function Invoke-Maester {
Write-Host "Skipped ⚫: $($pesterResults.SkippedCount)`n" -ForegroundColor DarkGray
}

Get-IsNewMaesterVersionAvailable | Out-Null
if (-not $SkipVersionCheck) {
Get-IsNewMaesterVersionAvailable | Out-Null
}

Write-MtProgress -Activity "🔥 Completed tests" -Status "Total $($pesterResults.TotalCount) " -Completed -Force # Clear progress bar
}
Expand Down

0 comments on commit 63e722c

Please sign in to comment.