Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

check for BOM before the build #548

Merged
merged 2 commits into from
Sep 28, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ install:
- pip install --user awscli
- ~/.local/bin/aws configure set preview.cloudfront true

before_script: bash tidy.sh

# Build and deploy the site to the S3 bucket on push to master, unless PR
script: bundle exec jekyll build
branches:
Expand Down
2 changes: 1 addition & 1 deletion _layouts/zh-CN/basic.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!DOCTYPE html>
<!-- Page last generated {{ site.time }} -->
<html lang="zh-CN">
<head>
Expand Down
3 changes: 3 additions & 0 deletions tidy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
git grep -l $'\xEF\xBB\xBF' .

if [ $? -eq 0 ]; then exit 1; else exit 0; fi
2 changes: 1 addition & 1 deletion zh-CN/downloads.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
---
layout: zh-CN/default
title: 下载 &middot; Rust程序设计语言
---
Expand Down
2 changes: 1 addition & 1 deletion zh-CN/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
---
layout: zh-CN/basic
title: Rust程序设计语言
---
Expand Down