From 7f5c177a4a4fb75280d13f911afef6ad5b627648 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 10 Jul 2012 21:10:25 +0200 Subject: [PATCH] Redirect stderr when testing for BYOBU_TEST --- usr/lib/byobu/include/common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/lib/byobu/include/common b/usr/lib/byobu/include/common index 34af3a7e..949535c0 100755 --- a/usr/lib/byobu/include/common +++ b/usr/lib/byobu/include/common @@ -23,9 +23,9 @@ if [ -z "${BYOBU_INCLUDED_LIBS}" ]; then . "${BYOBU_PREFIX}/lib/${PKG}/include/dirs" # Find command/type/which - if command -v; then + if command -v 2>/dev/null; then BYOBU_TEST="command -v" - elif type; then + elif type 2>/dev/null; then BYOBU_TEST="type" else BYOBU_TEST="which"