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 authored Dec 30, 2020
1 parent 566ea4f commit 727a451
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 @@ -137,7 +137,7 @@ DOCKER_RUN := docker run --rm=true --privileged --init \
-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 }) \
$(SONIC_BUILDER_EXTRA_CMDLINE)

ifneq ($(DOCKER_BUILDER_USER_MOUNT),)
Expand Down

0 comments on commit 727a451

Please sign in to comment.