Merge "dib-lint: make it work on Mac OS X"
This commit is contained in:
commit
fb52bb0e1e
1 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ error() {
|
|||
}
|
||||
|
||||
rc=0
|
||||
TMPDIR=$(mktemp -d)
|
||||
TMPDIR=$(mktemp -d /tmp/tmp.XXXXXXXXXX)
|
||||
trap "rm -rf $TMPDIR" EXIT
|
||||
for i in $(find elements -type f \
|
||||
-not -name \*~ \
|
||||
|
@ -80,7 +80,7 @@ for i in $(find elements -type f \
|
|||
flake8 $i
|
||||
else
|
||||
if ! excluded indent ; then
|
||||
if grep -q "^ \{4\}* \{1,3\}[^ ]" ${i}; then
|
||||
if grep -q "^\( \{4\}\)* \{1,3\}[^ ]" ${i}; then
|
||||
error "$i should use 4 spaces indent"
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue