From 5a77eb699879b6d6ac38380419b831b7d06c21a9 Mon Sep 17 00:00:00 2001 From: Mohamed Elawadi Date: Thu, 15 Sep 2016 19:35:28 +0200 Subject: [PATCH] fix byobu_test because the tools return err when no arg is passed --- usr/lib/byobu/include/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/lib/byobu/include/common b/usr/lib/byobu/include/common index 5687ee13..04ae4f4d 100755 --- a/usr/lib/byobu/include/common +++ b/usr/lib/byobu/include/common @@ -24,7 +24,7 @@ if [ -z "${BYOBU_INCLUDED_LIBS}" ]; then # Find command/type/which for BYOBU_TEST in "command -v" "type" "which"; do - eval $BYOBU_TEST >/dev/null 2>&1 && break || true + eval $BYOBU_TEST ls >/dev/null 2>&1 && break || true done # If the backend is already set (eg. running `byobu-tmux`), do nothing.