Skip to content

Commit

Permalink
husky changes
Browse files Browse the repository at this point in the history
  • Loading branch information
goodeats committed Aug 27, 2024
1 parent f59d5f7 commit da828e5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .husky/pre-commit
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# run this command to make the .husky/* files executable
# https://github.com/typicode/husky/issues/1177
# chmod +x .husky/_/*

# Check if HUSKY is set to 0 in .env, if so, skip the pre-commit hook
# Set HUSKY=1 in .env to enable these checks
# Set HUSKY=1 in .env or .env.local to enable these checks
if grep -q "HUSKY=0" .env; then
echo "Skipping pre-commit hook. Set HUSKY=1 in .env to enable."
exit 0
Expand Down

0 comments on commit da828e5

Please sign in to comment.