Compare commits
2 Commits
2c947f2022
...
845cdd62c9
Author | SHA1 | Date |
---|---|---|
fanyx | 845cdd62c9 | |
fanyx | 040ad03e33 |
|
@ -31,3 +31,5 @@
|
||||||
|
|
||||||
[credential]
|
[credential]
|
||||||
helper = store
|
helper = store
|
||||||
|
[core]
|
||||||
|
editor = vim
|
||||||
|
|
|
@ -1,12 +1,15 @@
|
||||||
#!/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 "xlint ${FILE}:"
|
echo "linting ${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