Skip to content

Commit

Permalink
[build]: setup -t option in docker run correctly (sonic-net#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 20, 2021
1 parent ccec723 commit dd62584
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 @@ -80,7 +80,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 dd62584

Please sign in to comment.