diff options
| author | Xe Iaso <me@xeiaso.net> | 2025-04-26 21:58:40 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2025-04-26 21:58:40 -0400 |
| commit | 2335e3316554643cee3ad80c78417c2b89706f60 (patch) | |
| tree | d4210b7bbbd6d9ae3db96932fa36eee236143f9e | |
| parent | 4f9c9dc08f40ca90eb57d9d719580a9a9120f972 (diff) | |
| download | x-2335e3316554643cee3ad80c78417c2b89706f60.tar.xz x-2335e3316554643cee3ad80c78417c2b89706f60.zip | |
chore(husky): fix [skip ci] again?
Signed-off-by: Xe Iaso <me@xeiaso.net>
| -rw-r--r-- | .husky/pre-commit | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/.husky/pre-commit b/.husky/pre-commit index 50ff1d7..7487b87 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,7 +1,11 @@ -if printf "%s" "$1" | grep -q '\[skip ci\]'; then - echo "Found [skip ci]" - exit 0 -fi - -npx lint-staged -npm test +case "$1" in + *"[skip ci]"*) + echo "Found [skip ci]" + exit 0 + ;; + *) + echo "No [skip ci] found" + npx lint-staged + npm test + ;; +esac
\ No newline at end of file |
