diff options
Diffstat (limited to 'pre-commit')
-rwxr-xr-x | pre-commit | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pre-commit b/pre-commit index 777728a6b..46a7c2a4b 100755 --- a/pre-commit +++ b/pre-commit | |||
@@ -12,10 +12,9 @@ find $PATHS -name "*.c" -exec indent {} \; | |||
12 | find $PATHS -name "*.h" -exec indent {} \; | 12 | find $PATHS -name "*.h" -exec indent {} \; |
13 | find $PATHS -name "*.c" -exec indent {} \; | 13 | find $PATHS -name "*.c" -exec indent {} \; |
14 | find $PATHS -name "*.h" -exec indent {} \; | 14 | find $PATHS -name "*.h" -exec indent {} \; |
15 | find $PATHS -name "*.c" -exec contrib/removetrailingwhitespace.py {} \; | 15 | find $PATHS -name "*.c" -exec contrib/scripts/removetrailingwhitespace.py {} \; |
16 | find $PATHS -name "*.h" -exec contrib/removetrailingwhitespace.py {} \; | 16 | find $PATHS -name "*.h" -exec contrib/scripts/removetrailingwhitespace.py {} \; |
17 | if test -x "`which 'dos2unix'`" | 17 | if test -n "`dos2unix -V | head -n1 | awk '{print $1 $2}'`"; then |
18 | then | ||
19 | find $PATHS -name "*.c" -exec dos2unix {} \; | 18 | find $PATHS -name "*.c" -exec dos2unix {} \; |
20 | find $PATHS -name "*.h" -exec dos2unix {} \; | 19 | find $PATHS -name "*.h" -exec dos2unix {} \; |
21 | fi | 20 | fi |