forked from Mirrorlandia_minetest/minetest
Fix clang-format binary selection
Also fix spaces to tabs
This commit is contained in:
parent
4b15f76ed1
commit
48ce9c9b30
@ -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…
Reference in New Issue
Block a user