aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-04-26 21:56:30 -0400
committerXe Iaso <me@xeiaso.net>2025-04-26 21:56:30 -0400
commit4f9c9dc08f40ca90eb57d9d719580a9a9120f972 (patch)
treeb7a8cf99db0ac4e3f746a99bd6df5ac52b0180cd
parent0d7e8b3ab139af24d2d04042cc0fbf1ea9b6af0c (diff)
downloadx-4f9c9dc08f40ca90eb57d9d719580a9a9120f972.tar.xz
x-4f9c9dc08f40ca90eb57d9d719580a9a9120f972.zip
chore(husky): fix [skip ci]
Signed-off-by: Xe Iaso <me@xeiaso.net>
-rw-r--r--.husky/pre-commit12
1 files changed, 6 insertions, 6 deletions
diff --git a/.husky/pre-commit b/.husky/pre-commit
index 81de11f..50ff1d7 100644
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -1,7 +1,7 @@
-if echo "$1" | grep -q "\[skip ci\]"; then
- npx lint-staged
- npm test
-else
- echo "Skipping CI for commit with [skip ci] in message"
+if printf "%s" "$1" | grep -q '\[skip ci\]'; then
+ echo "Found [skip ci]"
exit 0
-fi \ No newline at end of file
+fi
+
+npx lint-staged
+npm test