File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
9999foreach ($module in $modules ) {
100100 Install-GalleryModule - Module $module
101- }
101+ }
You can’t perform that action at this time.
0 commit comments