From 7cb0df4f65eb273a9ce5c590857826f52a83b6a2 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Wed, 11 Jan 2017 11:11:48 +0100 Subject: [PATCH] feat(tools/check_qml_syntax): check if `linter` exists --- tests/tools/check_qml_syntax | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/tools/check_qml_syntax b/tests/tools/check_qml_syntax index 61424173d..e916faefe 100755 --- a/tests/tools/check_qml_syntax +++ b/tests/tools/check_qml_syntax @@ -15,6 +15,13 @@ NC='\e[0m' SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd $SCRIPT_DIR/.. +# ============================================================================== + +if ! [ -x "$( command -v "$LINTER" )" ]; then + printf "${RED}Unable to found `$LINTER`. No tests can be executed.${NC}\n" + exit 0 +fi + printf "${BLUE}Checking qml files...${NC}\n" so_far_so_good=0