Skip to content

Commit ca74fe2

Browse files
committed
[build]: setup -t option in docker run correctly (#6320)
use bash -t test flag to check if input device is tty or not Signed-off-by: Guohan Lu <[email protected]>
1 parent 1cca3de commit ca74fe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile.work

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ DOCKER_RUN := docker run --rm=true --privileged \
8080
-w $(DOCKER_BUILDER_WORKDIR) \
8181
-e "http_proxy=$(http_proxy)" \
8282
-e "https_proxy=$(https_proxy)" \
83-
-i$(if $(TERM),t,)
83+
-i$(shell { if [ -t 0 ]; then echo t; fi })
8484

8585
include rules/config
8686

0 commit comments

Comments
 (0)