From 4385ce4805600babc28381b31f18c4340786740f Mon Sep 17 00:00:00 2001 From: Volker Theile Date: Tue, 29 Oct 2019 15:24:22 +0100 Subject: [PATCH] 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 --- src/vstart.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/vstart.sh b/src/vstart.sh index d231dda3651c5..8b630110f9c27 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() { -- 2.39.5