[Makefile]: Automatically deduce pseudo-TTY option (#830)

Signed-off-by: marian-pritsak <marianp@mellanox.com>
This commit is contained in:
Marian Pritsak 2017-07-24 10:52:51 +03:00 committed by GitHub
parent cd601650bf
commit bc4ee14340

View File

@ -14,7 +14,7 @@ SLAVE_IMAGE = sonic-slave-$(USER)
DOCKER_RUN := docker run --rm=true --privileged \
-v $(PWD):/sonic \
-i$(SONIC_SLAVE_TTY)
-i$(if $(TERM),t,)
DOCKER_BUILD = docker build --no-cache \
--build-arg user=$(USER) \