Skip to content

Commit

Permalink
[build]: setup -t option in docker run correctly (#6320)
Browse files Browse the repository at this point in the history
use bash -t test flag to check if input device is tty or not

Signed-off-by: Guohan Lu <lguohan@gmail.com>
  • Loading branch information
lguohan committed Jan 25, 2021
1 parent b41944a commit 5709763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.work
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ DOCKER_RUN := docker run --rm=true --privileged \
-w $(DOCKER_BUILDER_WORKDIR) \
-e "http_proxy=$(http_proxy)" \
-e "https_proxy=$(https_proxy)" \
-i$(if $(TERM),t,)
-i$(shell { if [ -t 0 ]; then echo t; fi })

include rules/config

Expand Down

0 comments on commit 5709763

Please sign in to comment.