Minor fix to template
This commit is contained in:
@@ -102,7 +102,7 @@ If ($ModuleNames) {
|
||||
}
|
||||
If ((Get-PackageProvider).Name -notcontains "NuGet") {
|
||||
Add-LogEntry "Installing NuGet package provider"
|
||||
Try { Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force -ErrorAction Stop }
|
||||
Try { Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force -ErrorAction Stop | Out-Null }
|
||||
Catch {
|
||||
Add-LogEntry "Installation failed, script is exiting" -As Error
|
||||
Exit
|
||||
|
Reference in New Issue
Block a user