Skip to content

Commit

Permalink
Add necessary brackets in multiline if-condtional at check-git.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
trentonyo committed Aug 6, 2024
1 parent 2a5f062 commit d0a17b9
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 d0a17b9

Please sign in to comment.