mirror of https://gitee.com/bigwinds/arangodb
fixed grep
This commit is contained in:
parent
9de6e8ec6d
commit
1f991b05ac
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if test "`git status --short | grep '^\(.[MAU]\|[MAU].\) .*js$$' | wc -l`" -eq 0; then
|
if test "`git status --short | grep '^\(.[MAU]\|[MAU].\) .*js$' | wc -l`" -eq 0; then
|
||||||
exit 0;
|
exit 0;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -14,6 +14,6 @@ if [ -z "${ARANGOSH}" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for file in ` git status --short | grep '^\(.[MAU]\|[MAU].\) .*js$$' | cut -d " " -f 3`; do
|
for file in ` git status --short | grep '^\(.[MAU]\|[MAU].\) .*js$' | cut -d " " -f 3`; do
|
||||||
${ARANGOSH} -c etc/relative/arangosh.conf --jslint $$file || exit 1
|
${ARANGOSH} -c etc/relative/arangosh.conf --log.level warning --jslint $file || exit 1
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue