From: Silvio Rhatto Date: Thu, 21 Aug 2014 20:13:38 +0000 (-0300) Subject: Init: just set git user/mail if needed X-Git-Tag: 0.3.7^2~2 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=5863d0315e3ceffb442056383346fca0809f47ee;p=keyringer.git Init: just set git user/mail if needed --- diff --git a/keyringer b/keyringer index a32f15b..b5251b9 100755 --- a/keyringer +++ b/keyringer @@ -106,8 +106,10 @@ function keyringer_init { keyringer_git_ignore 'tmp/*' # Git configuration - git config user.email "$email" - git config user.name "$name" + if [ ! -z "$email" ]; then + git config user.email "$email" + git config user.name "$name" + fi # Edit default recipients echo "Now you have to edit the default recipient configuration to be able to encrypt secrets."