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' }