From 1ec5782bfff8f453ac43d6831e71504f494cdd84 Mon Sep 17 00:00:00 2001 From: Stephen White Date: Fri, 27 Apr 2018 21:57:00 -0400 Subject: [PATCH] Fix travis lint script (again). Don't error out if there are no files to format. --- scripts/travis_lint_format.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/travis_lint_format.sh b/scripts/travis_lint_format.sh index 82f315fb10..b111cc4b7c 100755 --- a/scripts/travis_lint_format.sh +++ b/scripts/travis_lint_format.sh @@ -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