[provisioning] Configure git identity

This commit is contained in:
Correl Roush 2020-06-24 19:50:29 -04:00
parent 92f2b9cc32
commit 59c525064d

View file

@ -2,6 +2,9 @@
# Description: The Git version control system # Description: The Git version control system
set -e set -e
GIT_NAME="Correl Roush"
GIT_EMAIL="correl@gmail.com"
case $_PLATFORM in case $_PLATFORM in
darwin) darwin)
_recipe brew _recipe brew
@ -23,3 +26,6 @@ function _git {
echo "[git] $dest already exists, skipping." echo "[git] $dest already exists, skipping."
fi fi
} }
git config --global user.email || _run "[git] Setting user.email to '$GIT_EMAIL'" git config --global user.email $GIT_EMAIL
git config --global user.name || _run "[git] Setting user.name to '$GIT_NAME'" git config --global user.name $GIT_NAME