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
diff --git a/compile.sh b/compile.sh
index bb93313..e96a22d 100755
--- a/compile.sh
+++ b/compile.sh
@@ -82,7 +82,7 @@
#
# 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})"