Fix pre-commit.
parent
9eeb858a9a
commit
52efac43bd
|
@ -3,7 +3,7 @@ set -e
|
||||||
|
|
||||||
filesToFormat=$(
|
filesToFormat=$(
|
||||||
git --no-pager diff --name-status --no-color --cached | \
|
git --no-pager diff --name-status --no-color --cached | \
|
||||||
awk '$1 != "D" && $2 ~ /\.c\|\.h/ {print $NF}'
|
awk '$1 != "D" && $2 ~ /\.c|\.h/ {print $NF}'
|
||||||
)
|
)
|
||||||
|
|
||||||
for path in $filesToFormat
|
for path in $filesToFormat
|
||||||
|
|
Loading…
Reference in New Issue