This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download and install Git for Windows if not already installed | |
if (-not (Test-Path "C:\Program Files\Git\bin\git.exe")) { | |
Write-Host "Git for Windows not found. Downloading installer..." | |
Invoke-WebRequest -Uri "https://github.com/git-for-windows/git/releases/download/v2.31.1.windows.1/Git-2.31.1-64-bit.exe" -OutFile "git-installer.exe" | |
Write-Host "Installing Git for Windows..." | |
Start-Process -FilePath ".\git-installer.exe" -ArgumentList "/VERYSILENT" -Wait | |
Remove-Item ".\git-installer.exe" | |
} | |
# Create a temporary directory for downloads |