Skip to content

Commit

Permalink
Merge pull request #94 from SamErde/Enhancements
Browse files Browse the repository at this point in the history
Enhancement - Windows PowerShell 5.1 compatibility
  • Loading branch information
techthoughts2 authored Sep 8, 2024
2 parents 6ed822c + 7fcd549 commit ab5837a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions_bootstrap.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ foreach ($module in $modulesToInstall) {
ErrorAction = 'Stop'
}
try {
if ($module.ModuleName -eq 'Pester' -and $IsWindows) {
if ($module.ModuleName -eq 'Pester' -and ($IsWindows -or $PSVersionTable.PSVersion -ge [version]'5.1')) {
# special case for Pester certificate mismatch with older Pester versions - https://github.com/pester/Pester/issues/2389
# this only affects windows builds
Install-Module @installSplat -SkipPublisherCheck
Expand Down

0 comments on commit ab5837a

Please sign in to comment.