mirror of
https://github.com/kristoferssolo/solorice.git
synced 2026-02-04 06:32:03 +00:00
Update 2025-04-28
This commit is contained in:
11
config/git/check_email.sh
Executable file
11
config/git/check_email.sh
Executable 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
|
||||
Reference in New Issue
Block a user