From ea2076de2bd281b0026a716ddc279dc7a33d3ec5 Mon Sep 17 00:00:00 2001 From: Robert Holt Date: Mon, 7 Oct 2019 09:43:50 -0700 Subject: [PATCH] Fix version check in Install-VSCode.ps1 Fix https://github.com/PowerShell/vscode-powershell/issues/2229 --- scripts/Install-VSCode.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Install-VSCode.ps1 b/scripts/Install-VSCode.ps1 index 46c3ca8049..b01ae29212 100644 --- a/scripts/Install-VSCode.ps1 +++ b/scripts/Install-VSCode.ps1 @@ -460,7 +460,7 @@ if (($IsLinux -or $IsMacOS) -and (id -u) -ne 0) { } # User builds can only be installed on Windows systems -if ($BuildEdition.EndsWith('User') -and -not ($IsWindows -or $PSVersionTable.PSVersion.Major -lt 5)) { +if ($BuildEdition.EndsWith('User') -and -not ($IsWindows -or $PSVersionTable.PSVersion.Major -lt 6)) { throw 'User builds are not available for non-Windows systems' }