瀏覽代碼

CI: Add another wording for correct clang format

Stefan Profanter 6 年之前
父節點
當前提交
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"