Ensure git is installed

This commit is contained in:
Manuel Thalmann 2024-08-08 05:14:31 +02:00
parent 7118ec594f
commit f2cd00248a

View file

@ -45,6 +45,11 @@ $null = New-Module {
continue; continue;
} }
if (-not (Test-Command "git")) {
Install-ChocoPackage git;
continue;
}
if (-not (Test-ChocoPackage "powershell-core")) { if (-not (Test-ChocoPackage "powershell-core")) {
Invoke-Hook "Install-PowerShellCore" -Fallback { Invoke-Hook "Install-PowerShellCore" -Fallback {