#!/usr/bin/env bash
if [[ `cat .git/HEAD` == "ref: refs/heads/master" ]]
then
    ./bin/jekyll build --destination _build
    ./bin/octopress deploy
else
    echo "This is not master! You can only deploy from master."
    exit 1
fi