summaryrefslogtreecommitdiff
path: root/util/gitconfig
diff options
context:
space:
mode:
authorAlex Thiessen <alex.thiessen.de+coreboot@gmail.com>2018-01-13 19:49:33 +0000
committerMartin Roth <martinroth@google.com>2018-01-23 05:22:40 +0000
commit101485c73dbb7eb8d89fbfda1c1bf9a5e495b536 (patch)
tree9da9c0f4c7466f389570e43579808e291bd2b8dd /util/gitconfig
parentd5dee1e8a0757ba0f9ca5daac67111c5c2e7752e (diff)
downloadcoreboot-101485c73dbb7eb8d89fbfda1c1bf9a5e495b536.tar.xz
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>
Diffstat (limited to 'util/gitconfig')
-rwxr-xr-xutil/gitconfig/gitconfig.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/util/gitconfig/gitconfig.sh b/util/gitconfig/gitconfig.sh
index edfb6df742..5d6fe3610b 100755
--- a/util/gitconfig/gitconfig.sh
+++ b/util/gitconfig/gitconfig.sh
@@ -65,7 +65,10 @@ git submodule update --init --checkout"
{ git config --includes user.name && \
git config --includes user.email; } >/dev/null || \
- { printf "Please configure your name and email in git:\n\n\
- git config --global user.name \"Your Name Comes Here\"\n\
- git config --global user.email your.email@example.com\n"; \
+ { cat <<-EOMSG
+ Please configure your name and email in git:
+
+ git config --global user.name "Your Name Comes Here"
+ git config --global user.email your.email@example.com
+EOMSG
exit 1; }