Skip to content

Commit bf74007

Browse files
Add -UseBasicParsing to Invoke-WebRequest
1 parent e23dd31 commit bf74007

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bootstrap.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function Install-GalleryModule {
7676

7777
$ProgressPreference = 'SilentlyContinue'
7878
$staging = New-Item -Path $env:TEMP -Name "PSMS-$(Get-Random)" -ItemType Directory
79-
Invoke-WebRequest -Uri $Module.Link -OutFile "$($staging.FullName)\$($Module.Name).zip" -ErrorAction Stop
79+
Invoke-WebRequest -Uri $Module.Link -OutFile "$($staging.FullName)\$($Module.Name).zip" -UseBasicParsing -ErrorAction Stop
8080
Expand-Archive -Path "$($staging.FullName)\$($Module.Name).zip" -DestinationPath $staging.FullName -ErrorAction Stop
8181

8282
# Remove undesired parts
@@ -98,4 +98,4 @@ function Install-GalleryModule {
9898
$modules = Find-GalleryModule -Name PSFramework, ConvertToPSD1, PSFramework.NuGet
9999
foreach ($module in $modules) {
100100
Install-GalleryModule -Module $module
101-
}
101+
}

0 commit comments

Comments
 (0)