Skip to content

Commit

Permalink
Fix version check in Install-VSCode.ps1 (#2232)
Browse files Browse the repository at this point in the history
Fix #2229
  • Loading branch information
rjmholt authored Oct 7, 2019
1 parent fcc13c1 commit 3f915b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/Install-VSCode.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

Expand Down

0 comments on commit 3f915b6

Please sign in to comment.