Only install winget
if necessary
This commit is contained in:
parent
e927f6b438
commit
8c028ee27a
|
@ -224,7 +224,11 @@ iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocola
|
|||
|
||||
Import-Module $env:ChocolateyInstall/helpers/chocolateyProfile.psm1;
|
||||
|
||||
choco install -y winget;
|
||||
if (-not $(Get-Command winget))
|
||||
{
|
||||
choco install -y winget;
|
||||
}
|
||||
|
||||
choco install -y git --params='/WindowsTerminalProfile /DefaultBranchName:main';
|
||||
choco install -y powershell-core --install-arguments='"ADD_FILE_CONTEXT_MENU_RUNPOWERSHELL=1 ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1 REGISTER_MANIFEST=1 USE_MU=1 ENABLE_MU=1"';
|
||||
refreshenv;
|
||||
|
|
Loading…
Reference in a new issue