From: Volker Theile Date: Tue, 29 Oct 2019 14:24:22 +0000 (+0100) Subject: vstart: Fix /dev/tty No such device or address X-Git-Tag: v15.1.0~1105^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4385ce4805600babc28381b31f18c4340786740f;p=ceph.git vstart: Fix /dev/tty No such device or address Running on Jenkins slave or as a daemon there will be no writable console. Fixes: https://tracker.ceph.com/issues/42487 Signed-off-by: Volker Theile --- diff --git a/src/vstart.sh b/src/vstart.sh index d231dda3651..8b630110f9c 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -17,11 +17,7 @@ quoted_print() { } debug() { - if [ -w /dev/tty -a ! -t 2 ]; then - "$@" | tee /dev/tty >&2 - else - "$@" >&2 - fi + "$@" >&2 } prunb() {