Skip to content

Commit d779df5

Browse files
authored
[bugfix] Fix pre-commit hook cross-platform compatibility (#4643)
1 parent 47e1808 commit d779df5

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.husky/pre-commit

100644100755
Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
if [[ "$OS" == "Windows_NT" ]]; then
2-
npx.cmd lint-staged
3-
# Check for unused i18n keys in staged files
4-
npx.cmd tsx scripts/check-unused-i18n-keys.ts
5-
else
6-
npx lint-staged
7-
# Check for unused i18n keys in staged files
8-
npx tsx scripts/check-unused-i18n-keys.ts
9-
fi
1+
#!/usr/bin/env bash
2+
3+
npx lint-staged
4+
npx tsx scripts/check-unused-i18n-keys.ts

0 commit comments

Comments
 (0)