Fail xtests fast if the exa binary doesn’t exist

This commit is contained in:
Benjamin Sago 2017-08-19 23:27:26 +01:00
parent 69fbf8b6c0
commit cb9c0d3aa5

View File

@ -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"