From d92841b3f46afcf9bb5d1cca0cc7cea2cc86420c Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Mon, 7 Dec 2020 07:07:54 +0000 Subject: [PATCH] Handle git email --- .gitconfig | 1 - Makefile | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitconfig b/.gitconfig index 298a0d4..eba1e12 100644 --- a/.gitconfig +++ b/.gitconfig @@ -1,6 +1,5 @@ [user] name = Marcus Noble - email = github@marcusnoble.co.uk [core] editor = /usr/bin/vim diff --git a/Makefile b/Makefile index 5d422d9..ef68596 100644 --- a/Makefile +++ b/Makefile @@ -47,10 +47,12 @@ upgrade: ## Upgrade all required binaries. .PHONY: dotfiles dotfiles: ## Installs the dotfiles. + GITEMAIL=$$(git config --get user.email); \ for file in $(shell find $(CURDIR) -name ".*" -not -name ".gitignore" -not -name ".git" -not -name ".config" -not -name ".github" -not -name ".*.swp" -not -name ".gnupg"); do \ f=$$(basename $$file); \ ln -sfn $$file $(HOME)/$$f; \ done; \ + git config --system --add user.email $$GITEMAIL; \ mkdir -p $(HOME)/.additional_dotfiles; touch $(HOME)/.additional_dotfiles/credentials; \ mkdir -p $(HOME)/.config; \ for file in $(shell find $(CURDIR)/.config -type f); do \