Catesta is a PowerShell module and vault project generator. It uses templates to rapidly scaffold test and build integration for a variety of CI/CD platforms.
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.
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.