From a71c66a52e9ec53fed4c795c7f7409c7074363d6 Mon Sep 17 00:00:00 2001 From: Alex Thiessen Date: Tue, 2 Jan 2018 00:58:28 +0000 Subject: 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 Reviewed-on: https://review.coreboot.org/23059 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Nico Huber --- util/gitconfig/gitconfig.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/gitconfig/gitconfig.sh b/util/gitconfig/gitconfig.sh index 116e7fb809..5f91a697da 100755 --- a/util/gitconfig/gitconfig.sh +++ b/util/gitconfig/gitconfig.sh @@ -16,7 +16,7 @@ for hooks in .git/modules/{3rdparty/blobs,libhwbase,libgfxinit}/hooks; do if [ -d $hooks ]; then if [ util/gitconfig/commit-msg -nt $hooks/commit-msg ] || \ [ ! -x $hooks/commit-msg ]; then - sed -e "s,%MAKE%,remake,g" + sed -e "s,%MAKE%,remake,g" \ util/gitconfig/commit-msg > $hooks/commit-msg chmod +x $hooks/commit-msg fi -- cgit v1.2.3