Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dettmering/38b53c58e9c9120b33293043ef2f9193 to your computer and use it in GitHub Desktop.
Save dettmering/38b53c58e9c9120b33293043ef2f9193 to your computer and use it in GitHub Desktop.
CI error handling
- bundle exec jekyll build 2>&1 | tee output.log
- grep -i "error" output.log > /dev/null ; test $? -ne 0 # fail if there is an error in output.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment