diff options
author | Ben Gardner <gardner.ben@gmail.com> | 2015-12-31 12:13:43 -0600 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2016-01-04 16:41:40 +0100 |
commit | 2ab652f60624d5e46a14207b4428433ba2735f03 (patch) | |
tree | b245832f1e81b68494ca81b9cea83e147df0e408 | |
parent | bb85f9eb73d0b4d50a4d12246be6495b8cd8477f (diff) |
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 <gardner.ben@gmail.com>
Reviewed-on: https://review.coreboot.org/12819
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
-rwxr-xr-x | util/genbuild_h/genbuild_h.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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) |