瀏覽代碼

Add check to see if /json was changed

pull/530/head
davemachado 6 年之前
父節點
當前提交
00786f2d07
共有 1 個檔案被更改,包括 11 行新增0 行删除
  1. +11
    -0
      build/main.sh

+ 11
- 0
build/main.sh 查看文件

@@ -18,6 +18,17 @@ else
LINK_FILE=additions.txt
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..."
./validate_format.rb $FORMAT_FILE
if [[ $? != 0 ]]; then


Loading…
取消
儲存