12 lines
250 B
Bash
Executable file
12 lines
250 B
Bash
Executable file
#!/bin/bash
|
|
# xlint all changed templates
|
|
|
|
EX_ERR=1
|
|
|
|
FILES=$(git diff --name-only --staged | grep template)
|
|
for FILE in ${FILES}; do
|
|
stat "${FILE}" &> /dev/null || continue
|
|
echo "xlint ${FILE}:"
|
|
xlint $FILE || exit $EX_ERR
|
|
echo "all clear."
|
|
done
|