fix(check_qml_syntax): exit 0 if qmllint is not available!

This commit is contained in:
Ronan Abhamon 2017-08-17 11:34:44 +02:00
parent 4590970760
commit e5c5b37466

View file

@ -19,13 +19,13 @@ cd $SCRIPT_DIR/..
if ! [ -x "$( command -v "$LINTER" )" ]; then
printf "${RED}Unable to find ${LINTER}.${NC}\n"
exit 1
exit 0
fi
"${LINTER}" -v 2> /dev/null 1>&2
if [[ $? != 0 ]] ; then
printf "${RED}Unable to check qml syntax.${NC}\n"
exit 1
exit 0
fi
printf "${BLUE}Checking qml files...${NC}\n"