i3/travis/check-formatting.sh
Michael Stapelberg ff77b67101
switch from clang-format-6 to clang-format-9 (#4121)
No changes required, but this unbreaks our CI
2020-06-06 14:03:31 +02:00

7 lines
169 B
Bash
Executable File

#!/bin/sh
set -e
set -x
clang-format-9 -i $(find . -name "*.[ch]" | tr '\n' ' ') && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)