]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart: Fix /dev/tty No such device or address 31195/head
authorVolker Theile <vtheile@suse.com>
Tue, 29 Oct 2019 14:24:22 +0000 (15:24 +0100)
committerVolker Theile <vtheile@suse.com>
Wed, 30 Oct 2019 14:52:28 +0000 (15:52 +0100)
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 <vtheile@suse.com>
src/vstart.sh

index d231dda3651c555b8a64c86e922c892a6cea91d2..8b630110f9c2777468f3860fa4ee95fc8bcfbd3f 100755 (executable)
@@ -17,11 +17,7 @@ quoted_print() {
 }
 
 debug() {
-  if [ -w /dev/tty -a ! -t 2 ]; then
-    "$@" | tee /dev/tty >&2
-  else
-    "$@" >&2
-  fi
+  "$@" >&2
 }
 
 prunb() {