Refactor NuGet package provider check
This commit is contained in:
parent
1e807ee800
commit
c98f3c2372
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
#!/bin/pwsh
|
||||
if (-not (powershell -c Get-PackageProvider -ListAvailable NuGet)) {
|
||||
$null = powershell -c Get-PackageProvider -ListAvailable NuGet;
|
||||
|
||||
if (-not $?) {
|
||||
Write-Host "Installing NuGet PackageProvider";
|
||||
powershell -c Install-PackageProvider -Name NuGet -Force;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue