mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Fix clang-format binary selection
Also fix spaces to tabs
This commit is contained in:
parent
4b15f76ed1
commit
48ce9c9b30
1 changed files with 38 additions and 34 deletions
|
@ -1,7 +1,11 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
function perform_lint() {
|
function perform_lint() {
|
||||||
echo "Performing LINT..."
|
echo "Performing LINT..."
|
||||||
|
if hash clang-format-3.9 2>/dev/null; then
|
||||||
|
CLANG_FORMAT=clang-format-3.9
|
||||||
|
else
|
||||||
CLANG_FORMAT=clang-format
|
CLANG_FORMAT=clang-format
|
||||||
|
fi
|
||||||
CLANG_FORMAT_WHITELIST="util/travis/clang-format-whitelist.txt"
|
CLANG_FORMAT_WHITELIST="util/travis/clang-format-whitelist.txt"
|
||||||
|
|
||||||
if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then
|
if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue