From cbbeed3fe4972e56fc4839b84144dd0f2879a792 Mon Sep 17 00:00:00 2001 From: Abdul-rahman Yasir Khalil Date: Thu, 15 Feb 2024 15:56:16 +0300 Subject: [PATCH] fix: correct .env path in husky msg --- .husky/commit-msg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index 5074338aac..1f85f6c6a7 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -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} \ No newline at end of file