techthoughts2 / Catesta

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.
https://www.catesta.dev/
MIT License
169 stars 20 forks source link

Enhancement - Windows PowerShell 5.1 compatibility #94

Closed SamErde closed 2 months ago

SamErde commented 3 months ago

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.