fix byobu_test because the tools return err when no arg is passed

This commit is contained in:
Mohamed Elawadi 2016-09-15 19:35:28 +02:00
commit 5a77eb6998

View file

@ -24,7 +24,7 @@ if [ -z "${BYOBU_INCLUDED_LIBS}" ]; then
# Find command/type/which # Find command/type/which
for BYOBU_TEST in "command -v" "type" "which"; do 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 done
# If the backend is already set (eg. running `byobu-tmux`), do nothing. # If the backend is already set (eg. running `byobu-tmux`), do nothing.