summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-08-21 17:13:38 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-08-21 17:13:38 -0300
commit5863d0315e3ceffb442056383346fca0809f47ee (patch)
tree1550b8164d32aaae8f18e8b1d197b99522acb6d6
parent50c8eac52ededab3bc52db3d0d03f0b8aeef8e86 (diff)
downloadkeyringer-5863d0315e3ceffb442056383346fca0809f47ee.tar.gz
keyringer-5863d0315e3ceffb442056383346fca0809f47ee.tar.bz2
Init: just set git user/mail if needed
-rwxr-xr-xkeyringer6
1 files changed, 4 insertions, 2 deletions
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."