Skip to content

Commit 5e1372a

Browse files
committed
🐛 Fix Pipe install flow path
1 parent ab8e842 commit 5e1372a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ModuleFast.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function Install-ModuleFast {
214214
Destination = $Destination
215215
CancellationToken = $cancelSource.Token
216216
HttpClient = $httpClient
217-
Update = $Update
217+
Update = $Update -or $PSCmdlet.ParameterSetName -eq 'ModuleFastInfo'
218218
}
219219
Install-ModuleFastHelper @installHelperParams
220220
Write-Progress -Id 1 -Activity 'Install-ModuleFast' -Completed
@@ -681,7 +681,7 @@ function Install-ModuleFastHelper {
681681
#Do a prerelease evaluation
682682
if ($module.ModuleVersion -eq $existingVersion) {
683683
if ($Update) {
684-
Write-Verbose "${module}: Existing module found at $installPath and its version $existingVersion is the same as the requested version. -Update was specified so we are assuming that the discovered online version is the same as the local version and skipping this module installation."
684+
Write-Debug "${module}: Existing module found at $installPath and its version $existingVersion is the same as the requested version. -Update was specified so we are assuming that the discovered online version is the same as the local version and skipping this module installation."
685685
continue
686686
} else {
687687
throw [NotImplementedException]"${module}: Existing module found at $installPath and its version $existingVersion is the same as the requested version. This is probably a bug because it should have been detected by localmodule detection. Use -Update to override..."

0 commit comments

Comments
 (0)