Ensure git is installed

This commit is contained in:
Manuel Thalmann 2024-08-08 05:14:31 +02:00
parent be4a3228da
commit 8812500285

View file

@ -47,6 +47,11 @@ $null = New-Module {
continue;
}
if (-not (Test-Command "git")) {
Install-ChocoPackage git;
continue;
}
if (-not (Test-ChocoPackage "powershell-core")) {
Invoke-Hook "Install-PowerShellCore" -Fallback {
choco install -y powershell-core --install-arguments='"ADD_FILE_CONTEXT_MENU_RUNPOWERSHELL=1 ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1 REGISTER_MANIFEST=1 USER_MU=1 ENABLE_MU=1"';