From: Silvio Rhatto Date: Thu, 17 Apr 2014 23:36:26 +0000 (-0300) Subject: Commit: minor fix X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=af93ab6f84fc034c03393defec9287f55007b3cb;p=scripts.git Commit: minor fix --- diff --git a/commit b/commit index 4be63d2..a9ae29c 100755 --- a/commit +++ b/commit @@ -88,7 +88,7 @@ function git_push { # Check user information function git_user { - if [ -z "`git config user.email`" ] && [ -z "`git config user.name`" ]; then + if [ -z "`git config user.email`" ] || [ -z "`git config user.name`" ]; then if echo $ARGS | grep -q -- '--config'; then if grep -q "^\[user\]" $HOME/.gitconfig; then grep -A 2 "^\[user\]" $HOME/.gitconfig >> $GIT_FOLDER/.git/config