Skip to content

Commit cd6044f

Browse files
Justin GroteJustin Grote
authored andcommitted
Fix progress message
1 parent 7f5987c commit cd6044f

1 file changed

Lines changed: 5 additions & 19 deletions

File tree

ModuleFast.ps1

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,8 @@ function Install-ModuleFast {
413413
$NoProfileUpdate = $true
414414
}
415415
if (-not $NoPSModulePathUpdate) {
416-
$pathUpdateMessage = "Update PSModulePath $($NoProfileUpdate ? '' : 'and CurrentUserAllHosts profile ')to include $Destination"
417-
if (-not $PSCmdlet.ShouldProcess($pathUpdateMessage)) { return }
416+
$pathUpdateMessage = "Update PSModulePath $($NoProfileUpdate ? '' : 'and CurrentUserAllHosts profile ')to include "
417+
if (-not $PSCmdlet.ShouldProcess($pathUpdateMessage, $pathUpdateMessage, $pathUpdateMessage)) { return }
418418

419419
Add-DestinationToPSModulePath -Destination $Destination -NoProfileUpdate:$NoProfileUpdate
420420
}
@@ -975,23 +975,6 @@ function Add-Getters {
975975

976976
#region Helpers
977977

978-
function New-NuGetPackageConfig ($modulesToInstall, $Path = [io.path]::GetTempFileName()) {
979-
$packageConfig = [xml.xmlwriter]::Create([string]$Path)
980-
$packageConfig.WriteStartDocument()
981-
$packageConfig.WriteStartElement('packages')
982-
foreach ($ModuleItem in $ModulesToInstall) {
983-
$packageConfig.WriteStartElement('package')
984-
$packageConfig.WriteAttributeString('id', $null, $ModuleItem.id)
985-
$packageConfig.WriteAttributeString('version', $null, $ModuleItem.Version)
986-
$packageConfig.WriteEndElement()
987-
}
988-
$packageConfig.WriteEndElement()
989-
$packageConfig.WriteEndDocument()
990-
$packageConfig.Flush()
991-
$packageConfig.Close()
992-
return $path
993-
}
994-
995978
function Get-ModuleInfoAsync {
996979
[CmdletBinding()]
997980
[OutputType([Task[String]])]
@@ -1181,6 +1164,9 @@ function Limit-ModuleFastSpecs {
11811164
}
11821165
-not $Highest ? $Versions : @($Versions | Sort-Object -Descending | Select-Object -First 1)
11831166
}
1167+
1168+
1169+
11841170
#endregion Helpers
11851171

11861172
# Export-ModuleMember Get-ModuleFast

0 commit comments

Comments
 (0)