Skip to content

[build]: setup -t option in docker run correctly#6320

Merged
lguohan merged 1 commit intosonic-net:masterfrom
lguohan:term
Dec 30, 2020
Merged

[build]: setup -t option in docker run correctly#6320
lguohan merged 1 commit intosonic-net:masterfrom
lguohan:term

Conversation

@lguohan
Copy link
Collaborator

@lguohan lguohan commented Dec 29, 2020

use bash -t test flag to check if input device is tty or not

Signed-off-by: Guohan Lu [email protected]

- Why I did it
TERM variable is not reliable way to detect input device is tty or not.

use bash -t test flag to check if input device is tty or not

- How I did it
use bash -t test flag to check if input device is tty or not

- How to verify it
test under both tty and non-tty env

- Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

use bash -t test flag to check if input device is tty or not

Signed-off-by: Guohan Lu <[email protected]>
@lguohan lguohan merged commit 727a451 into sonic-net:master Dec 30, 2020
@lguohan lguohan deleted the term branch December 30, 2020 12:57
lguohan added a commit to lguohan/sonic-buildimage that referenced this pull request Jan 20, 2021
use bash -t test flag to check if input device is tty or not

Signed-off-by: Guohan Lu <[email protected]>
lguohan added a commit to lguohan/sonic-buildimage that referenced this pull request Jan 20, 2021
use bash -t test flag to check if input device is tty or not

Signed-off-by: Guohan Lu <[email protected]>
lguohan added a commit that referenced this pull request Jan 21, 2021
use bash -t test flag to check if input device is tty or not

Signed-off-by: Guohan Lu <[email protected]>
lguohan added a commit that referenced this pull request Jan 25, 2021
use bash -t test flag to check if input device is tty or not

Signed-off-by: Guohan Lu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants