util/gitconfig: Do not wait for user input

When running `make gitconfig` on a freshly cloned repository, the script
will wait for user input without a prompt in a call to `sed`, caused by
a spurious newline introduced in commit 9ab8ae6a (util/gitconfig: Make
gitconfig a bash script).

Change-Id: I2aa722c052d24dcffa9688df09bcf8dc767bd0b6
Signed-off-by: Alex Thiessen <alex.thiessen.de+coreboot@gmail.com>
Reviewed-on: https://review.coreboot.org/23059
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Alex Thiessen 2018-01-02 00:58:28 +00:00 committed by Nico Huber
parent ceb7788c80
commit a71c66a52e
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ for hooks in .git/modules/{3rdparty/blobs,libhwbase,libgfxinit}/hooks; do
if [ -d $hooks ]; then if [ -d $hooks ]; then
if [ util/gitconfig/commit-msg -nt $hooks/commit-msg ] || \ if [ util/gitconfig/commit-msg -nt $hooks/commit-msg ] || \
[ ! -x $hooks/commit-msg ]; then [ ! -x $hooks/commit-msg ]; then
sed -e "s,%MAKE%,remake,g" sed -e "s,%MAKE%,remake,g" \
util/gitconfig/commit-msg > $hooks/commit-msg util/gitconfig/commit-msg > $hooks/commit-msg
chmod +x $hooks/commit-msg chmod +x $hooks/commit-msg
fi fi