This repository was archived by the owner on Mar 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -529,7 +529,11 @@ function Install-UpliftPSModule {
529
529
530
530
while ( ($attempt -le $maxAttempt ) -and (-not $success ) ) {
531
531
532
+ $oldProgressPreference = $progressPreference
533
+
532
534
try {
535
+ $progressPreference = ' silentlyContinue'
536
+
533
537
Write-UpliftMessage " `t [$attempt /$maxAttempt ] ensuring package: $name $version "
534
538
$existinModule = $null
535
539
@@ -548,9 +552,9 @@ function Install-UpliftPSModule {
548
552
Write-UpliftMessage " `t`t package does not exist, installing: $name $version "
549
553
550
554
if ([System.String ]::IsNullOrEmpty($version ) -eq $true ) {
551
- Install-Module - Name $name - Force;
555
+ Install-Module - Name $name - Force - SkipPublisherCheck
552
556
} else {
553
- Install-Module - Name $name - RequiredVersion $version - Force;
557
+ Install-Module - Name $name - RequiredVersion $version - Force - SkipPublisherCheck
554
558
}
555
559
}
556
560
@@ -563,6 +567,8 @@ function Install-UpliftPSModule {
563
567
Write-UpliftMessage " `t [$attempt /$maxAttempt ] error was: $exception "
564
568
565
569
$attempt = $attempt + 1
570
+ } finally {
571
+ $progressPreference = $oldProgressPreference
566
572
}
567
573
}
568
574
You can’t perform that action at this time.
0 commit comments