Commit e5c5b374 authored by Ronan Abhamon's avatar Ronan Abhamon

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

parent 45909707
...@@ -19,13 +19,13 @@ cd $SCRIPT_DIR/.. ...@@ -19,13 +19,13 @@ cd $SCRIPT_DIR/..
if ! [ -x "$( command -v "$LINTER" )" ]; then if ! [ -x "$( command -v "$LINTER" )" ]; then
printf "${RED}Unable to find ${LINTER}.${NC}\n" printf "${RED}Unable to find ${LINTER}.${NC}\n"
exit 1 exit 0
fi fi
"${LINTER}" -v 2> /dev/null 1>&2 "${LINTER}" -v 2> /dev/null 1>&2
if [[ $? != 0 ]] ; then if [[ $? != 0 ]] ; then
printf "${RED}Unable to check qml syntax.${NC}\n" printf "${RED}Unable to check qml syntax.${NC}\n"
exit 1 exit 0
fi fi
printf "${BLUE}Checking qml files...${NC}\n" printf "${BLUE}Checking qml files...${NC}\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment