Do not require scripts/powerline

It may be immediately moved to bin/ sometimes or not compiled at all for some
reason.
This commit is contained in:
ZyX 2014-08-23 04:43:17 +04:00
parent 042d542231
commit 77a7a26782

View File

@ -240,6 +240,13 @@ if test -z "${ONLY_SHELL}" || test "x${ONLY_SHELL%sh}" != "x${ONLY_SHELL}" || te
*powerline.sh) TEST_CLIENT=shell ;;
"") TEST_CLIENT=auto ;;
esac
if test "$TEST_CLIENT" = "C" && ! test -x scripts/powerline ; then
if which powerline >/dev/null ; then
POWERLINE_COMMAND=powerline
else
continue
fi
fi
if test "$TEST_CLIENT" = "shell" && ! which socat >/dev/null ; then
continue
fi