Fix the check for whether files were modified.
This commit is contained in:
parent
78422f46fc
commit
e74abf0567
1 changed files with 4 additions and 4 deletions
8
.github/workflows/ci-scripts/docker.sh
vendored
8
.github/workflows/ci-scripts/docker.sh
vendored
|
@ -36,10 +36,10 @@ execute() {
|
|||
# check for trailing whitespace in hpp|cpp files
|
||||
# check for trailing whitespace in lua files
|
||||
checkindent() {
|
||||
make -C data/tools reindent &&
|
||||
find src/ -name \*.\[ch\]pp -print0 | xargs -0 sed -i 's/[[:blank:]]*$//' &&
|
||||
find data/lua/ -name \*.lua -print0 | xargs -0 sed -i 's/[[:blank:]]*$//' &&
|
||||
git diff-index --quiet HEAD
|
||||
make -C data/tools reindent
|
||||
find src/ -name \*.\[ch\]pp -print0 | xargs -0 sed -i 's/[[:blank:]]*$//'
|
||||
find data/lua/ -name \*.lua -print0 | xargs -0 sed -i 's/[[:blank:]]*$//'
|
||||
(( $(git status --short | wc -l) == 0 ))
|
||||
}
|
||||
|
||||
EXIT_VAL=-1
|
||||
|
|
Loading…
Add table
Reference in a new issue