Skip to content
Browse files

Fix version check for 1.7.10

  • Loading branch information...
1 parent c614a40 commit 8e8c7bd8c64a8a113c07ac394457c78d84b9a617 @dahlbyk dahlbyk committed Apr 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 CheckVersion.ps1
View
2 CheckVersion.ps1
@@ -5,7 +5,7 @@ if (!(Get-Command git -TotalCount 1 -ErrorAction SilentlyContinue)) {
}
$requiredVersion = [Version]'1.7.2'
-if ((git --version 2> $null) -match '(?<ver>\d(?:\.\d)+)') {
+if ((git --version 2> $null) -match '(?<ver>\d+(?:\.\d+)+)') {
$version = [Version]$Matches['ver']
}
if ($version -lt $requiredVersion) {

0 comments on commit 8e8c7bd

Please sign in to comment.
Something went wrong with that request. Please try again.