summaryrefslogtreecommitdiff
path: root/util/genbuild_h
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2016-03-12 20:15:18 -0700
committerMartin Roth <martinroth@google.com>2016-03-14 23:37:12 +0100
commit8ba235e2acf2c15ca5484ed51001d6555b082a51 (patch)
tree21345571594ebadab187b3b635333cca63b1d08a /util/genbuild_h
parent08e920e50dd18febb410b730d02b6180b3071c39 (diff)
downloadcoreboot-8ba235e2acf2c15ca5484ed51001d6555b082a51.tar.xz
genbuild_h: Fix numeric comparison to remove error
Change the comparison of build_timeless from -eq to = This was generating an error if BUILD_TIMELESS wasn't set: util/genbuild_h/genbuild_h.sh: line 27: [: : integer expression expected This wasn't causing the script to fail, and won't even if 'set -e' is added to the script because the error happens inside an 'if' clause, which is specifically excluded from failue on 'set -e'. Change-Id: I6a4e147ece23e83ee682d72db35be9e5d4088c78 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/14080 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Alexander Couzens <lynxis@fe80.eu> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/genbuild_h')
-rwxr-xr-xutil/genbuild_h/genbuild_h.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/genbuild_h/genbuild_h.sh b/util/genbuild_h/genbuild_h.sh
index d68b867a88..044d901195 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 [ "${BUILD_TIMELESS}" -eq 1 ]; then
+if [ "${BUILD_TIMELESS}" = "1" ]; then
GITREV=Timeless
TIMESOURCE="fixed"
DATE=0