Catesta
Catesta copied to clipboard
Enhancement - Windows PowerShell 5.1 compatibility
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.