Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 213503d

Browse files
committed
Reduce install module verbosity
1 parent faf96cf commit 213503d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vscode-powershell.build.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ function Assert-Module {
105105
RequiredVersion = $moduleSpec.Version
106106
Force = $true
107107
Scope = 'CurrentUser'
108+
Verbose = $false
109+
Debug = $false
108110
}
109111
if ($installModuleParams.Name -eq 'Pester') {
110112
$installModuleParams.SkipPublisherCheck = $true
@@ -114,7 +116,7 @@ function Assert-Module {
114116
# We could do a symbolic link or point both instances to the same PSModulePath but there are some potential risks so we go slow in the name of safety.
115117
if ($otherPowerShell) {
116118
Write-Verbose "PREREQUISITE: Installing Missing Module $($moduleSpec.Name) $($moduleSpec.RequiredVersion) ($otherPowerShell)"
117-
& $otherPowershell -noprofile -c "Install-Module -Name $($moduleSpec.Name) -RequiredVersion $($moduleSpec.RequiredVersion) -Force -Scope CurrentUser -ErrorAction Stop -SkipPublisherCheck"
119+
& $otherPowershell -noprofile -c "Install-Module -Name $($moduleSpec.Name) -RequiredVersion $($moduleSpec.RequiredVersion) -Force -Scope CurrentUser -ErrorAction Stop -SkipPublisherCheck -Verbose:`$false -Debug:`$false"
118120
}
119121
continue
120122
} else {

0 commit comments

Comments
 (0)