summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/bazel.mk5
-rwxr-xr-xtools/make_release.sh3
2 files changed, 5 insertions, 3 deletions
diff --git a/tools/bazel.mk b/tools/bazel.mk
index 88faa0190..82fe11a03 100644
--- a/tools/bazel.mk
+++ b/tools/bazel.mk
@@ -48,7 +48,10 @@ FULL_DOCKER_RUN_OPTIONS += -v "$(BAZEL_CACHE):$(BAZEL_CACHE)"
FULL_DOCKER_RUN_OPTIONS += -v "$(GCLOUD_CONFIG):$(GCLOUD_CONFIG)"
FULL_DOCKER_RUN_OPTIONS += -v "/tmp:/tmp"
FULL_DOCKER_EXEC_OPTIONS := --user $(UID):$(GID)
-FULL_DOCKER_EXEC_OPTIONS += -i
+FULL_DOCKER_EXEC_OPTIONS += --interactive
+ifeq (true,$(shell [[ -t 0 ]] && echo true))
+FULL_DOCKER_EXEC_OPTIONS += --tty
+endif
# Add docker passthrough options.
ifneq ($(DOCKER_PRIVILEGED),)
diff --git a/tools/make_release.sh b/tools/make_release.sh
index b1cdd47b0..9137dd9bb 100755
--- a/tools/make_release.sh
+++ b/tools/make_release.sh
@@ -43,8 +43,7 @@ install_raw() {
# Copy the raw file & generate a sha512sum.
name=$(basename "${binary}")
cp -f "${binary}" "${root}/$1"
- sha512sum "${root}/$1/${name}" | \
- awk "{print $$1 \" ${name}\"}" > "${root}/$1/${name}.sha512"
+ (cd "${root}/$1" && sha512sum "${name}" > "${name}.sha512")
done
}