yolobs-studio/CI/check-format.sh

11 lines
238 B
Bash
Raw Normal View History

2019-09-22 21:19:10 +00:00
#!/bin/bash
dirty=$(git ls-files --modified)
set +x
if [[ $dirty ]]; then
echo "================================="
echo "Files were not formatted properly"
echo "$dirty"
echo "================================="
exit 1
fi