]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
install-deps.sh: check if have access to stdout
authorKefu Chai <kchai@redhat.com>
Thu, 28 Dec 2017 02:18:11 +0000 (10:18 +0800)
committerNathan Cutler <ncutler@suse.com>
Fri, 4 Oct 2019 15:14:02 +0000 (17:14 +0200)
commitc17abe640fa3bfe38e08393bd3620ce3870eb087
treef0c842dc66051104014c66c3d6af0fb21655346c
parent32396bfd51f72cea3d91f589f0ada15d897dead2
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 <kchai@redhat.com>
(cherry picked from commit 7bb8f66cf4e2519c33f1078c1be7485f9fe35a87)
install-deps.sh