set -u
function __get_git_email() {
- grep 'email\s*=.*@' ~/.gitconfig |
- tr -d '\t ' | head -n 1 |
- cut -d'=' -f2
+ git config --global user.email
+ # grep 'email\s*=.*@' ~/.gitconfig | tr -d '\t ' | head -n 1 | cut -d'=' -f2
}
function __get_pubkey_id() {
return 1
fi
- MY_NAME="$(
- grep 'name\s*=' ~/.gitconfig |
- head -n 1 |
- cut -d'=' -f2 |
- sed -e 's/^[\t ]*//'
- )"
+ #grep 'name\s*=' ~/.gitconfig | head -n 1 | cut -d'=' -f2 | sed -e 's/^[\t ]*//'
+ MY_NAME="$(git config --global user.name)"
if [[ -z ${MY_NAME} ]]; then
return 1
fi