Skip to content

Commit

Permalink
fix: correct .env path in husky msg
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdulTheActivePiecer committed Feb 15, 2024
1 parent ae8579d commit cbbeed3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
. "$(dirname -- "$0")/_/husky.sh"

# Check if the commit includes changes to the backend's .env file
if git diff --cached --name-only -- packages/backend/.env | grep -q '^packages/backend/.env$'; then
if git diff --cached --name-only -- packages/server/api/.env | grep -q '^packages/server/api/.env$'; then
echo "Error: You're attempting to commit the backend's .env file. Please avoid committing this file."
exit 1
fi

npx --no -- commitlint --edit ${1}
npx --no -- commitlint --edit ${1}

0 comments on commit cbbeed3

Please sign in to comment.