Merge pull request #2610 from alfredxing/proof-use-bundle-exec

This commit is contained in:
Parker Moore 2014-07-16 16:14:14 -04:00
commit c4ae4aee2b
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,7 @@
#! /bin/bash #! /bin/bash
set -e
script/branding script/branding
script/proof script/proof
script/test script/test

View File

@ -3,6 +3,8 @@
# Usage: # Usage:
# script/proof # script/proof
set -e
git diff --name-only origin $(git log --pretty=format:"%h" -2 | tail -1) | grep '^site/' || { git diff --name-only origin $(git log --pretty=format:"%h" -2 | tail -1) | grep '^site/' || {
echo "No site files changed. We'll skip proofing." echo "No site files changed. We'll skip proofing."
exit 0 exit 0
@ -15,6 +17,6 @@ command -v htmlproof || {
gem install html-proofer -- --use-system-libraries gem install html-proofer -- --use-system-libraries
} }
jekyll build -s site -d _site --trace bundle exec jekyll build -s site -d _site --trace
echo -e "\e[0;36mProofing begins now!\e[0m\n" echo -e "\e[0;36mProofing begins now!\e[0m\n"
htmlproof ./_site htmlproof ./_site