From d779df5f64d2f025f4569a9c6e7750ac82e93176 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Fri, 1 Aug 2025 18:43:44 -0400 Subject: [PATCH] [bugfix] Fix pre-commit hook cross-platform compatibility (#4643) --- .husky/pre-commit | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) mode change 100644 => 100755 .husky/pre-commit diff --git a/.husky/pre-commit b/.husky/pre-commit old mode 100644 new mode 100755 index a8866207a..6b8a399e4 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,9 +1,4 @@ -if [[ "$OS" == "Windows_NT" ]]; then - npx.cmd lint-staged - # Check for unused i18n keys in staged files - npx.cmd tsx scripts/check-unused-i18n-keys.ts -else - npx lint-staged - # Check for unused i18n keys in staged files - npx tsx scripts/check-unused-i18n-keys.ts -fi +#!/usr/bin/env bash + +npx lint-staged +npx tsx scripts/check-unused-i18n-keys.ts \ No newline at end of file