Skip to content

Commit 4e075c1

Browse files
LPCmediamprobst
authored andcommitted
refactor: verification of binary windows safe
1 parent 1317a87 commit 4e075c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/check-clang-format.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function checkGitConfig() {
1919
const style = spawn('git', ['config', '--get', 'clangFormat.style'], spawn_opts).stdout.trim();
2020
let gitConfigWrong = false;
2121

22-
if (binary !== 'node_modules/.bin/clang-format') {
22+
if (binary.indexOf(`node_modules${path.sep}.bin${path.sep}clang-format`) === -1) {
2323
console.error(`
2424
ERROR: Found git config --get clangFormat.binary = "${binary}"
2525
This can result in running a different version of clang-format than your

0 commit comments

Comments
 (0)