ソースを参照

CI: Add another wording for correct clang format

Stefan Profanter 5 年 前
コミット
0b9d42a171
共有1 個のファイルを変更した4 個の追加0 個の削除を含む
  1. 4 0
      tools/travis/travis_linux_script.sh

+ 4 - 0
tools/travis/travis_linux_script.sh

@@ -119,6 +119,10 @@ if ! [ -z ${CLANG_FORMAT+x} ]; then
         echo "====== clang-format did not find any issues. Well done! ======"
         exit 0
     fi
+    if ! case $difference in *"clang-format did not modify any files"*) false;; esac; then
+        echo "====== clang-format did not find any issues. Well done! ======"
+        exit 0
+    fi
 
     echo "====== clang-format Format Errors ======"
     echo -e "Please fix the following issues. \n\nYou can also copy the output between the lines here and save it as file 'fixup.patch'.\nThen apply it with 'git apply fixup.patch'\n\n"