feat(tools/check_qml_syntax): do not check qml syntax if executable cannot be found the qt lib

This commit is contained in:
Ronan Abhamon 2017-01-11 11:26:22 +01:00
parent 7cb0df4f65
commit 4f715e083e

View file

@ -22,6 +22,12 @@ if ! [ -x "$( command -v "$LINTER" )" ]; then
exit 0
fi
$("$LINTER" -v)
if [[ $? != 0 ]] ; then
printf "${RED}Unable to check qml syntax.${NC}\n"
exit 0
fi
printf "${BLUE}Checking qml files...${NC}\n"
so_far_so_good=0