Refine git search (#2623)

Seems like there are two alternative DisplayName formattings
This commit is contained in:
Andrea Lanfranchi 2021-09-03 03:37:19 +02:00 committed by GitHub
parent 4c1dbdf50e
commit 5ab3eb8684
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,7 +207,7 @@ function Test-GO-Installed {
# -----------------------------------------------------------------------------
function Test-Git-Installed {
$Private:item = Get-Uninstall-Item "^Git\ "
$Private:item = Get-Uninstall-Item "^Git version [0-9\.]{1,}|^Git$"
$Private:result = $false
if ($Private:item) {