1
0
Fork 0

fixed grep

This commit is contained in:
Frank Celler 2016-04-17 00:54:13 +02:00
parent 9de6e8ec6d
commit 1f991b05ac
1 changed files with 3 additions and 3 deletions

View File

@ -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