Skip to content

Commit c12e2a3

Browse files
committed
fix: avoid running a blank git command in checks
1 parent caddd90 commit c12e2a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/install-windows-dev.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function install_git {
172172
}
173173
else {
174174
try {
175-
git | Out-Null
175+
Get-Command git -ErrorAction Stop | Out-Null
176176
Write-Host "Git is already installed. Nice!"
177177
}
178178
catch [System.Management.Automation.CommandNotFoundException] {

0 commit comments

Comments
 (0)