solorice/config/git/check_email.sh
Kristofers Solo 66f1040fc5
Update 2025-10-31
Update 2025-10-09

Update 2025-10-11

feat: add rose-pine gtk themes

Update 2025-10-16

Update 2025-10-23

Fix desktop niri

Update 2025-10-31
2025-10-31 12:13:54 +02:00

12 lines
326 B
Bash

#!/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