Refactor NuGet package provider check

This commit is contained in:
Manuel Thalmann 2023-07-19 09:53:11 +02:00
parent 7b384d4ea6
commit c86a1cf87d

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