util/gitconfig: Replace printf with heredoc

The `gitconfig.sh` script contains a call to `printf` with a lengthy
argument where no format string is used at all. Replace it with a
heredoc for better readability.

Change-Id: I42dbaa570ab9661991fa5d9b4577c9aed05c2981
Signed-off-by: Alex Thiessen <alex.thiessen.de+coreboot@gmail.com>
Reviewed-on: https://review.coreboot.org/23251
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Alex Thiessen 2018-01-13 19:49:33 +00:00 committed by Martin Roth
parent d5dee1e8a0
commit 101485c73d
1 changed files with 6 additions and 3 deletions

View File

@ -65,7 +65,10 @@ git submodule update --init --checkout"
{ git config --includes user.name && \ { git config --includes user.name && \
git config --includes user.email; } >/dev/null || \ git config --includes user.email; } >/dev/null || \
{ printf "Please configure your name and email in git:\n\n\ { cat <<-EOMSG
git config --global user.name \"Your Name Comes Here\"\n\ Please configure your name and email in git:
git config --global user.email your.email@example.com\n"; \
git config --global user.name "Your Name Comes Here"
git config --global user.email your.email@example.com
EOMSG
exit 1; } exit 1; }