Refactor NuGet package provider check

This commit is contained in:
Manuel Thalmann 2023-07-19 09:53:11 +02:00
parent 1e807ee800
commit c98f3c2372

View file

@ -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;
}