-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-git.ps1
30 lines (25 loc) · 937 Bytes
/
install-git.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#-----------------------------------------------------------------------------
#
# Copyright (c) 2022, Thierry Lelegard
# BSD-2-Clause license, see LICENSE.txt file
#
# Download and install Git for Windows.
# See parameters documentation in install-common.ps1.
#
#-----------------------------------------------------------------------------
[CmdletBinding(SupportsShouldProcess=$true)]
param(
[string]$Destination = "",
[switch]$ForceDownload = $false,
[switch]$GitHubActions = $false,
[switch]$NoInstall = $false,
[switch]$NoPause = $false
)
Write-Output "==== Git download and installation procedure"
. "$PSScriptRoot\install-common.ps1"
Install-Standard-Exe `
"https://git-scm.com/download/win" `
"*/Git-*-64-bit.exe" `
"https://github.com/git-for-windows/git/releases/download/v2.34.0.windows.1/Git-2.34.0-64-bit.exe" `
@("/verysilent", "/suppressmsgboxes", "/norestart")
Exit-Script