mirror of
https://github.com/public-apis/public-apis.git
synced 2025-07-01 16:58:12 +02:00
Add check to see if /json was changed
This commit is contained in:
parent
d7dec9cd2a
commit
00786f2d07
1 changed files with 11 additions and 0 deletions
|
@ -18,6 +18,17 @@ else
|
||||||
LINK_FILE=additions.txt
|
LINK_FILE=additions.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "checking if /json was changed..."
|
||||||
|
egrep "\+{3}\s.\/json\/" 527.diff > json.txt
|
||||||
|
if [[$? == 0]]; then
|
||||||
|
echo "JSON files are auto-generated! Please do not update these files:"
|
||||||
|
cat json.txt
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "/json check passed!"
|
||||||
|
rm json.txt
|
||||||
|
fi
|
||||||
|
|
||||||
echo "running format validation..."
|
echo "running format validation..."
|
||||||
./validate_format.rb $FORMAT_FILE
|
./validate_format.rb $FORMAT_FILE
|
||||||
if [[ $? != 0 ]]; then
|
if [[ $? != 0 ]]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue