From 2ab652f60624d5e46a14207b4428433ba2735f03 Mon Sep 17 00:00:00 2001 From: Ben Gardner Date: Thu, 31 Dec 2015 12:13:43 -0600 Subject: genbuild_h.sh: allow coreboot to be a git submodule When coreboot is pulled in as a submodule, the .git "folder" is a file, not a folder. Use the '-e' test instead of '-d' to allow for that. Change-Id: I0dd8866b0016f7ba099cdaf4d7db442ff22612b5 Signed-off-by: Ben Gardner Reviewed-on: https://review.coreboot.org/12819 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Patrick Georgi --- util/genbuild_h/genbuild_h.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/genbuild_h') diff --git a/util/genbuild_h/genbuild_h.sh b/util/genbuild_h/genbuild_h.sh index 4c8f602163..7f0c76869e 100755 --- a/util/genbuild_h/genbuild_h.sh +++ b/util/genbuild_h/genbuild_h.sh @@ -24,7 +24,7 @@ export TZ=UTC top=`dirname $0`/../.. -if [ -d "${top}/.git" -a -x "$(command -v git)" ]; then +if [ -e "${top}/.git" -a -x "$(command -v git)" ]; then GITREV=$(LANG= git log -1 --format=format:%h) TIMESOURCE=git DATE=$(git log --pretty=format:%ct -1) -- cgit v1.2.3