diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-08-21 17:13:38 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-08-21 17:13:38 -0300 |
commit | 5863d0315e3ceffb442056383346fca0809f47ee (patch) | |
tree | 1550b8164d32aaae8f18e8b1d197b99522acb6d6 | |
parent | 50c8eac52ededab3bc52db3d0d03f0b8aeef8e86 (diff) | |
download | keyringer-5863d0315e3ceffb442056383346fca0809f47ee.tar.gz keyringer-5863d0315e3ceffb442056383346fca0809f47ee.tar.bz2 |
Init: just set git user/mail if needed
-rwxr-xr-x | keyringer | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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." |