ipld-eth-db/scripts/check_diff.sh
2021-10-13 13:09:58 +05:30

10 lines
226 B
Bash
Executable File

file1=$1
file2=$2
lines=$( git diff --no-index "$file1" "$file2" | wc -l )
if [ "$lines" -gt 0 ]; then
echo "There are differences in schema"
git diff --no-index "$file1" "$file2"
exit 1
fi
echo "Schema is latest"