From cb9c0d3aa56f2e4e092834cb8d471b8222f02b2e Mon Sep 17 00:00:00 2001 From: Benjamin Sago Date: Sat, 19 Aug 2017 23:27:26 +0100 Subject: [PATCH] =?UTF-8?q?Fail=20xtests=20fast=20if=20the=20exa=20binary?= =?UTF-8?q?=20doesn=E2=80=99t=20exist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xtests/run.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xtests/run.sh b/xtests/run.sh index d04a675..8705931 100755 --- a/xtests/run.sh +++ b/xtests/run.sh @@ -5,6 +5,13 @@ set +xe # The exa binary exa_binary="$HOME/target/debug/exa" +if [ ! -f "$exa_binary" ]; then + echo "exa binary ($exa_binary) does not exist" + echo -e "create it first with \033[1;32mbuild-exa\033[0m or \033[1;32mb\033[0m" + exit 1 +fi + + # The exa command that ends up being run exa="$exa_binary --colour=always"