VERY experimental Nintendo Switch 2 emulator
C++
travis: fix clang-format lint
wwylele1c4a13df97b7
diff --git a/.travis-build.sh b/.travis-build.shindex b8562cb024..3310bacc5c 100755--- a/.travis-build.sh+++ b/.travis-build.sh@@ -17,7 +17,7 @@ if [ "$TRAVIS_OS_NAME" = "linux" ]; thenif [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then# Get list of every file modified in this pull request- files_to_lint="$(git diff --name-only --diff-filter=ACMRTUXB $TRAVIS_COMMIT_RANGE | grep '^src/[^.]*[.]\(cpp\|h\)$')"+ files_to_lint="$(git diff --name-only --diff-filter=ACMRTUXB $TRAVIS_COMMIT_RANGE | grep '^src/[^.]*[.]\(cpp\|h\)$' || true)"else# Check everything for branch pushesfiles_to_lint="$(find src/ -name '*.cpp' -or -name '*.h')"@@ -27,7 +27,7 @@ if [ "$TRAVIS_OS_NAME" = "linux" ]; thenset +xfor f in $files_to_lint; do- d=$(diff -u "$f" <($CLANG_FORMAT "$f"))+ d=$(diff -u "$f" <($CLANG_FORMAT "$f") || true)if ! [ -z "$d" ]; thenecho "!!! $f not compliant to coding style, here is the fix:"echo "$d"