Fix travis lint script (again).

Don't error out if there are no files to format.
This commit is contained in:
Stephen White 2018-04-27 21:57:00 -04:00 committed by Corentin Wallez
parent c71cbf7721
commit 1ec5782bff
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ files_to_check=$(echo $files_to_check | tr '\n' ' ')
# Run git-clang-format, check if it formatted anything
format_output=$(scripts/git-clang-format --binary $1 --commit $base_commit --diff --style=file $files_to_check)
if [ "$format_output" == "clang-format did not modify any files" ] || [ "format_output" == "no modified files to format" ] ; then
if [ "$format_output" == "clang-format did not modify any files" ] || [ "$format_output" == "no modified files to format" ] ; then
exit 0
fi