Update 2025-04-28

This commit is contained in:
2025-04-28 15:53:07 +03:00
parent 90d846ea20
commit 94fabd2f50
4 changed files with 80 additions and 10 deletions

11
config/git/check_email.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
GLOBAL_EMAIL=$(git config --global user.email)
REPO_EMAIL=$(git config --local user.email)
# Check if the local email is empty OR equal to the global email
if [ -z "$REPO_EMAIL" ] || [ "$REPO_EMAIL" = "$GLOBAL_EMAIL" ]; then
exit 0 # TRUE: Include the key
else
exit 1 # FALSE: Don't include the key
fi