Skip to content

Instantly share code, notes, and snippets.

View adamsp's full-sized avatar

Adam Speakman adamsp

View GitHub Profile
@adamsp
adamsp / update.sh
Created February 5, 2014 07:57
Simple script to update my Octopress blog and push changes to git in one go. Now I type one command instead of 5!
#!/bin/bash
ERR_SITE_GEN=1
ERR_SITE_DEPLOY=2
ERR_GIT_ADD=3
ERR_GIT_COMMIT=4
ERR_GIT_PUSH=5
ERR_NO_COMMIT_MESSAGE=6
if [ $# -eq 0 ]; then