Skip to content

Commit

Permalink
Merge pull request #5 from Start-Out/feature/tools
Browse files Browse the repository at this point in the history
PATCH: Fix check-git.bat
  • Loading branch information
trentonyo authored Aug 6, 2024
2 parents 2610630 + d0a17b9 commit 99c974b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/check-git.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ set REQUIRED_VERSION=2.9.0
for /f "tokens=3 USEBACKQ" %%F in (`git --version`) do (
set GIT_VERSION=%%F
)
node -e " var semver = require('semver'); var gitVersion = '%GIT_VERSION%'; gitVersion = gitVersion.split('.').slice(0, 3).join('.'); if(semver.gte(gitVersion, '%REQUIRED_VERSION%')) console.log('Git version is greater than or equal to %REQUIRED_VERSION% (%GIT_VERSION%)\n-- FAILING CHECK In order to install git hooks'); process.exit(1); else console.log('Git version is less than %REQUIRED_VERSION% (%GIT_VERSION%)\n-- Unable to install git hooks');"
node -e " var semver = require('semver'); var gitVersion = '%GIT_VERSION%'; gitVersion = gitVersion.split('.').slice(0, 3).join('.'); if(semver.gte(gitVersion, '%REQUIRED_VERSION%')) {console.log('Git version is greater than or equal to %REQUIRED_VERSION% (%GIT_VERSION%)\n-- FAILING CHECK In order to install git hooks'); process.exit(1);} else {console.log('Git version is less than %REQUIRED_VERSION% (%GIT_VERSION%)\n-- Unable to install git hooks');}"

0 comments on commit 99c974b

Please sign in to comment.