We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf7214c commit 54ba6d6Copy full SHA for 54ba6d6
2 files changed
scripts/install-windows-dev.ps1
@@ -185,7 +185,7 @@ function install_git {
185
}
186
else {
187
try {
188
- git | Out-Null
+ Get-Command git -ErrorAction Stop | Out-Null
189
Write-Host "Git is already installed. Nice!"
190
191
catch [System.Management.Automation.CommandNotFoundException] {
scripts/install-windows.ps1
@@ -176,7 +176,7 @@ function install_git {
176
177
178
179
180
181
182
0 commit comments