Skip to content

Commit 3f915b6

Browse files
authored
Fix version check in Install-VSCode.ps1 (#2232)
Fix #2229
1 parent fcc13c1 commit 3f915b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Install-VSCode.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ if (($IsLinux -or $IsMacOS) -and (id -u) -ne 0) {
460460
}
461461

462462
# User builds can only be installed on Windows systems
463-
if ($BuildEdition.EndsWith('User') -and -not ($IsWindows -or $PSVersionTable.PSVersion.Major -lt 5)) {
463+
if ($BuildEdition.EndsWith('User') -and -not ($IsWindows -or $PSVersionTable.PSVersion.Major -lt 6)) {
464464
throw 'User builds are not available for non-Windows systems'
465465
}
466466

0 commit comments

Comments
 (0)