Skip to content

Commit d5f5a20

Browse files
author
Rasmus Bækgaard
committed
Update script to allow for higher versions than PowerShell 5
1 parent 89b605b commit d5f5a20

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

GitSetup.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function CheckAdminMode
2929

3030
function CheckPowerShellVersion
3131
{
32-
if($PSVersionTable.PSVersion.Major -ne 5) {
32+
if($PSVersionTable.PSVersion.Major -lt 5) {
3333
Write-Host "You are not running PowerShell version 5+, and cannot make a full installation (Post-git requires it)." -Foreground Red
3434
Write-Host "To upgrade, you can install Chocolatey through the following command, followed by a restart:" -Foreground Cyan
3535
Write-Host "Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" -Foreground Gray

0 commit comments

Comments
 (0)