Skip to content

Commit

Permalink
fix(install): Add -UseBasicParsing to Windows installer
Browse files Browse the repository at this point in the history
I tried installing on Windows and got the following error:

`Invoke-WebRequest : The response content cannot be parsed because the Internet Explorer engine is not available, or Internet Explorer's first launch configuration is not complete. Specify the UseBasicParsing parameter and try again.`

This commit fixes that.
  • Loading branch information
vkorbes authored Jun 26, 2019
1 parent a8c8b35 commit 86dacd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ md -Force $gardenTmpPath | Out-Null
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

# Download and extract the archive to $gardenBinPath
$latestRelease = Invoke-WebRequest "https://github.com/garden-io/garden/releases/latest" -Headers @{"Accept"="application/json"}
$latestRelease = Invoke-WebRequest "https://github.com/garden-io/garden/releases/latest" -UseBasicParsing -Headers @{"Accept"="application/json"}
# The releases are returned in the format {"id":3622206,"tag_name":"hello-1.0.0.11",...}, we have to extract the tag_name.
$json = $latestRelease.Content | ConvertFrom-Json
$latestVersion = $json.tag_name
Expand Down

0 comments on commit 86dacd9

Please sign in to comment.