fix(pre-commit): Enhance git-crypt check and simplify error output
This commit is contained in:
parent
7dc97bd349
commit
009bd83977
1 changed files with 2 additions and 3 deletions
|
|
@ -11,9 +11,8 @@ set -euo pipefail
|
|||
FAILED=0
|
||||
|
||||
# Verify git-crypt is initialized
|
||||
if [[ ! -d ".git-crypt" ]]; then
|
||||
printf "\n\033[0;31m[CRITICAL] git-crypt not initialized.\033[0m\n"
|
||||
printf "Run 'git-crypt init' and 'make setup' before committing.\n"
|
||||
if ! git-crypt status >/dev/null 2>&1; then
|
||||
printf "\n[CRITICAL] git-crypt not initialized.\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue