From 7bb8f66cf4e2519c33f1078c1be7485f9fe35a87 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 28 Dec 2017 10:18:11 +0800 Subject: [PATCH] install-deps.sh: check if have access to stdout $- is "hB" if launched via command line, and it is "himBH" only when we are actually *in* an interactive shell. so checking "test -t 1" is what we want. Signed-off-by: Kefu Chai --- install-deps.sh | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/install-deps.sh b/install-deps.sh index 336a156dfd7d..ef55b056a947 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -80,10 +80,9 @@ function ensure_decent_gcc_on_rh { local expected=5.1 local dts_ver=$1 if version_lt $old $expected; then - case $- in - *i*) - # interactive shell - cat <