Compare commits
No commits in common. "845cdd62c9e0038dd44a951f3f49bb23242fb320" and "2c947f2022fe2bf754a508678f1eb2a01dafc778" have entirely different histories.
845cdd62c9
...
2c947f2022
|
@ -31,5 +31,3 @@
|
||||||
|
|
||||||
[credential]
|
[credential]
|
||||||
helper = store
|
helper = store
|
||||||
[core]
|
|
||||||
editor = vim
|
|
||||||
|
|
|
@ -1,15 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# xlint all changed templates
|
# xlint all changed templates
|
||||||
# xgensum all changed templates
|
|
||||||
|
|
||||||
EX_ERR=1
|
EX_ERR=1
|
||||||
|
|
||||||
FILES=$(git diff --name-only --staged | grep template)
|
FILES=$(git diff --name-only --staged | grep template)
|
||||||
for FILE in ${FILES}; do
|
for FILE in ${FILES}; do
|
||||||
stat "${FILE}" &> /dev/null || continue
|
stat "${FILE}" &> /dev/null || continue
|
||||||
echo "linting ${FILE}:"
|
echo "xlint ${FILE}:"
|
||||||
xlint $FILE || exit $EX_ERR
|
xlint $FILE || exit $EX_ERR
|
||||||
xgensum -i $FILE || exit $EX_ERR
|
|
||||||
echo "all clear."
|
echo "all clear."
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue