Catesta icon indicating copy to clipboard operation
Catesta copied to clipboard

Enhancement - Windows PowerShell 5.1 compatibility

Open SamErde opened this issue 1 year ago • 0 comments

Pull Request

Description

Enhanced actions_bootstrap.ps1 to support Windows PowerShell 5.1 while installing Pester on Windows. It currently checks for $IsWindows, which was only introduced in PowerShell 6.

I updated it to -and ($IsWindows -or $PSVersionTable.PSVersion -ge [version]'5.1') but if minimal code is desired, it could be further simplified to -and $PSVersionTable.PSVersion -ge [version]'5.1').

License

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

SamErde avatar Aug 21 '24 12:08 SamErde