Skip to content

Make the Install-VSCode script work on *nix #1597

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Nov 7, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions scripts/Install-VSCode.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,6 @@ try {
$prevWhatIfPreference = $WhatIfPreference
$WhatIfPreference = $WhatIfPreference -or $WhatIf

$onWindows = $IsWindows -or $PSVersionTable.PSVersion.Major -lt 6

# Get information required for installation
$codePlatformInfo = Get-CodePlatformInformation -Bitness $Architecture -BuildEdition $BuildEdition

Expand All @@ -462,7 +460,7 @@ try {

$installerPath = [System.IO.Path]::Combine($tmpdir, $installerName)

if ($onWindows) {
if ($PSVersionTable.PSVersion.Major -lt 6) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not Core compatible huh?

Copy link
Contributor Author

@rjmholt rjmholt Nov 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BitsTransfer wasn't loading for me 😢

Save-WithBitsTransfer -FileUri $codePlatformInfo.FileUri -Destination $installerPath -AppName $codePlatformInfo.AppName
}
# We don't want to use RPM packages -- see the installation step below
Expand Down