From a377af083e2d3edb77a9c071c09cb40b318a8dd1 Mon Sep 17 00:00:00 2001 From: Damien Martin-Guillerez Date: Wed, 24 Jun 2015 12:04:27 +0000 Subject: Enforce embed label only if not set This way we can use it to build unstamped binary with an empty EMBED_LABEL. -- Change-Id: Id63360f2ccd85a4ba42d54ba670c53cbadacfeca Reviewed-on: https://bazel-review.googlesource.com/#/c/1560/ MOS_MIGRATED_REVID=96764907 --- compile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compile.sh') diff --git a/compile.sh b/compile.sh index bb93313949..e96a22d56e 100755 --- a/compile.sh +++ b/compile.sh @@ -82,7 +82,7 @@ fi # # Bootstrap bazel using the previous bazel binary = release binary # -if [ -z "${EMBED_LABEL-}" ]; then +if [ "${EMBED_LABEL-x}" = "x" ]; then # Add a default label when unspecified git_sha1=$(git_sha1) EMBED_LABEL="head (@${git_sha1:-non-git})" -- cgit v1.2.3