11 lines
238 B
Bash
11 lines
238 B
Bash
|
#!/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
|