ipld-eth-db/scripts/check_diff.sh

10 lines
226 B
Bash
Raw Permalink Normal View History

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