mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-07 08:07:20 +02:00
Fix format check
This commit is contained in:
parent
db8a70b7ba
commit
a419965061
@ -4,7 +4,7 @@ wget https://llvm.org/svn/llvm-project/cfe/trunk/tools/clang-format/git-clang-fo
|
|||||||
chmod +x git-clang-format
|
chmod +x git-clang-format
|
||||||
|
|
||||||
CLANG_FORMAT_OUTPUT=$(./git-clang-format HEAD^ HEAD --diff)
|
CLANG_FORMAT_OUTPUT=$(./git-clang-format HEAD^ HEAD --diff)
|
||||||
if [[ ! $CLANG_FORMAT_OUTPUT == "no modified files to format" ]]; then
|
if [[ ! ${CLANG_FORMAT_OUTPUT} == "no modified files to format" ]] && [[ ! -z ${CLANG_FORMAT_OUTPUT} ]]; then
|
||||||
echo "Failed clang format check:"
|
echo "Failed clang format check:"
|
||||||
echo "${CLANG_FORMAT_OUTPUT}"
|
echo "${CLANG_FORMAT_OUTPUT}"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user